From a60af04ac842393f7197d59cdddf6a128818d563 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Mon, 13 Aug 2001 14:19:25 +0000 Subject: * decl.c (grokdeclarator): Clarify diagnostic message. From-SVN: r44852 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/cp') 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 + + * decl.c (grokdeclarator): Clarify diagnostic message. + 2001-08-13 Kriang Lerdsuwanakij * 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); } -- cgit v1.1