diff options
author | Jason Merrill <jason@redhat.com> | 2015-10-31 12:20:05 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-10-31 12:20:05 -0400 |
commit | 4fea442db740d66cd8d16bdeb667d9725f305844 (patch) | |
tree | 58ced5bf7feb8ee0c6ac2b1c7d216ad00966909d /gcc/fortran/openmp.c | |
parent | a459b07fa440fcb449e9b65cf0cc649905b6ba9e (diff) | |
download | gcc-4fea442db740d66cd8d16bdeb667d9725f305844.zip gcc-4fea442db740d66cd8d16bdeb667d9725f305844.tar.gz gcc-4fea442db740d66cd8d16bdeb667d9725f305844.tar.bz2 |
Implement multiple 'auto' feature from Concepts TS.
* parser.c (cp_parser_type_id_1): Allow 'auto' if -fconcepts.
(cp_parser_template_type_arg): Likewise.
(get_concept_from_constraint): Split out most logic to...
* constraint.cc (placeholder_extract_concept_and_args): ...here.
(equivalent_placeholder_constraints, hash_placeholder_constraint): New.
* cxx-pretty-print.c (pp_cxx_constrained_type_spec): New.
* cxx-pretty-print.h: Declare it.
* error.c (dump_type) [TEMPLATE_TYPE_PARM]: Call it.
* pt.c (is_auto_r, extract_autos_r, extract_autos, auto_hash): New.
(type_uses_auto): Use is_auto_r.
(do_auto_deduction): Handle multiple 'auto's if -fconcepts.
* typeck.c (structural_comptypes) [TEMPLATE_TYPE_PARM]: Compare
constraints.
From-SVN: r229629
Diffstat (limited to 'gcc/fortran/openmp.c')
0 files changed, 0 insertions, 0 deletions