Commit a60af04a by Gabriel Dos Reis Committed by Gabriel Dos Reis

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

From-SVN: r44852
parent 22633450
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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment