This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ PATCH: Fix PR 2768



Mark,
  This patchlet fixes PR #2768 -- not a regression.

Bootstrapped and tested on an i686-pc-linux.

OK for mainline?

-- Gaby

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/ChangeLog,v
retrieving revision 1.2476
diff -p -r1.2476 ChangeLog
*** ChangeLog	2001/08/10 14:01:31	1.2476
--- ChangeLog	2001/08/11 19:11:04
***************
*** 1,3 ****
--- 1,7 ----
+ 2001-08-11  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
+ 
+ 	* decl.c (grokdeclarator): Clarify diagnostic message.
+ 
  2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
  
  	Support named return value optimization for inlines, too.
Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.809
diff -p -r1.809 decl.c
*** decl.c	2001/08/10 14:01:32	1.809
--- decl.c	2001/08/11 19:11:05
*************** friend declaration requires class-key, i
*** 11585,11591 ****
  	    DECL_CONTEXT (decl) = ctype;
  	    if (staticp == 1)
  	      {
! 	        cp_pedwarn ("static member `%D' re-declared as static", decl);
  	        staticp = 0;
  		RIDBIT_RESET (RID_STATIC, specbits);
  	      }
--- 11585,11591 ----
  	    DECL_CONTEXT (decl) = ctype;
  	    if (staticp == 1)
  	      {
! 	        cp_pedwarn ("internal linkage specification is not permitted in a static member definition");
  	        staticp = 0;
  		RIDBIT_RESET (RID_STATIC, specbits);
  	      }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]