aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 18b2c38..e8d045f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8fffdb8..c854874 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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);
}