* decl.c (grokdeclarator): Clarify diagnostic message.

From-SVN: r44852
This commit is contained in:
Gabriel Dos Reis 2001-08-13 14:19:25 +00:00 committed by Gabriel Dos Reis
parent 2263345095
commit a60af04ac8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* decl.c (grokdeclarator): Clarify diagnostic message.
2001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* decl2.c (do_nonmember_using_decl): Replace using directive

View File

@ -11585,7 +11585,7 @@ friend declaration requires class-key, i.e. `friend %#T'",
DECL_CONTEXT (decl) = ctype;
if (staticp == 1)
{
cp_pedwarn ("static member `%D' re-declared as static", decl);
cp_pedwarn ("`static' may not be used when defining (as opposed to declaring) a static data member");
staticp = 0;
RIDBIT_RESET (RID_STATIC, specbits);
}