aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 8e8ebce..0a82f41 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -17049,9 +17049,9 @@ cp_parser_simple_type_specifier (cp_parser* parser,
"only available with "
"-std=c++14 or -std=gnu++14");
else if (!flag_concepts)
- pedwarn (token->location, OPT_Wpedantic,
- "ISO C++ forbids use of %<auto%> in parameter "
- "declaration");
+ pedwarn (token->location, 0,
+ "use of %<auto%> in parameter declaration "
+ "only available with -fconcepts");
}
else
type = make_auto ();