parser.c (cp_parser_diagnose_invalid_type_name): Mention that concept is also availab...
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Dec 2019 21:18:58 +0000 (22:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Dec 2019 21:18:58 +0000 (22:18 +0100)
* parser.c (cp_parser_diagnose_invalid_type_name): Mention
that concept is also available with -std=c++2a.

From-SVN: r279066

gcc/cp/ChangeLog
gcc/cp/parser.c

index 3ee98a43f836142997172569fe6379d0dabf3a50..b4bdb894ecf91640e20d6292ccb001a54c7a6c3d 100644 (file)
@@ -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.
index 05be440cb9b8e0b968c345e8110991ddb3149840..1ea19ce824aab953effae9f93627b6109bfa8391 100644 (file)
@@ -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))
        {