diff options
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 0b2a37259f4..06c0bc2ffe5 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -647,16 +647,16 @@ unqualified_fn_lookup_error (tree name) Note that we have the exact wording of the following message in the manual (trouble.texi, node "Name lookup"), so they need to be kept in synch. */ - pedwarn ("there are no arguments to %qD that depend on a template " - "parameter, so a declaration of %qD must be available", - name, name); + permerror ("there are no arguments to %qD that depend on a template " + "parameter, so a declaration of %qD must be available", + name, name); if (!flag_permissive) { static bool hint; if (!hint) { - error ("(if you use %<-fpermissive%>, G++ will accept your " + inform ("(if you use %<-fpermissive%>, G++ will accept your " "code, but allowing the use of an undeclared name is " "deprecated)"); hint = true; |