mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 06:50:33 +08:00
parser.c (cp_parser_diagnose_invalid_type_name): Mention that concept is also available with -std=c++2a.
* parser.c (cp_parser_diagnose_invalid_type_name): Mention that concept is also available with -std=c++2a. From-SVN: r279066
This commit is contained in:
parent
abd6d8cc4f
commit
94a0f396ea
@ -1,5 +1,8 @@
|
||||
2019-12-06 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* parser.c (cp_parser_diagnose_invalid_type_name): Mention
|
||||
that concept is also available with -std=c++2a.
|
||||
|
||||
PR c++/92831 - CWG 1299, not extending temporary lifetime for ?:
|
||||
* cp-tree.h (extend_ref_init_temps): Add a new argument with NULL
|
||||
default arg.
|
||||
|
@ -3367,7 +3367,8 @@ cp_parser_diagnose_invalid_type_name (cp_parser *parser, tree id,
|
||||
inform (location, "C++20 %<constinit%> only available with "
|
||||
"%<-std=c++2a%> or %<-std=gnu++2a%>");
|
||||
else if (!flag_concepts && id == ridpointers[(int)RID_CONCEPT])
|
||||
inform (location, "%<concept%> only available with %<-fconcepts%>");
|
||||
inform (location, "%<concept%> only available with %<-std=c++2a%> or "
|
||||
"%<-fconcepts%>");
|
||||
else if (processing_template_decl && current_class_type
|
||||
&& TYPE_BINFO (current_class_type))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user