From 94a0f396eaa35aa5db4cf2861db03e93571eb37f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 6 Dec 2019 22:18:58 +0100 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/parser.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3ee98a43f83..b4bdb894ecf 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2019-12-06 Jakub Jelinek + * 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. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 05be440cb9b..1ea19ce824a 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -3367,7 +3367,8 @@ cp_parser_diagnose_invalid_type_name (cp_parser *parser, tree id, inform (location, "C++20 % only available with " "%<-std=c++2a%> or %<-std=gnu++2a%>"); else if (!flag_concepts && id == ridpointers[(int)RID_CONCEPT]) - inform (location, "% only available with %<-fconcepts%>"); + inform (location, "% only available with %<-std=c++2a%> or " + "%<-fconcepts%>"); else if (processing_template_decl && current_class_type && TYPE_BINFO (current_class_type)) { -- 2.30.2