diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 67a13522d9c..29e435abee1 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6089,7 +6089,7 @@ grokfndecl (tree ctype, { error (ctype ? G_("static member function %qD cannot have cv-qualifier") - : G_("non-static member function %qD cannot have cv-qualifier"), + : G_("non-member function %qD cannot have cv-qualifier"), decl); quals = TYPE_UNQUALIFIED; }