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]
Other format: [Raw text]

Fix PR c++/13558


Approved on IRC by Mark.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v
retrieving revision 1.3873
diff -c -3 -p -r1.3873 ChangeLog
*** ChangeLog	13 Jan 2004 00:01:43 -0000	1.3873
--- ChangeLog	13 Jan 2004 00:40:46 -0000
***************
*** 1,3 ****
--- 1,9 ----
+ 2003-01-12  Steven Bosscher  <stevenb@suse.de>
+ 
+ 	PR c++/13558
+ 	* parser.c (cp_parser_member_declaration): Any non-type is also
+ 	not a class or a function.
+ 
  2004-01-12  Jason Merrill  <jason@redhat.com>
  
  	PR c++/12815
Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.151
diff -c -3 -p -r1.151 parser.c
*** parser.c	12 Jan 2004 16:14:41 -0000	1.151
--- parser.c	13 Jan 2004 00:41:13 -0000
*************** cp_parser_member_declaration (cp_parser*
*** 12226,12232 ****
  			 }
  		     }
  		 }
! 	       if (!type)
  		 error ("friend declaration does not name a class or "
  			"function");
  	       else
--- 12226,12232 ----
  			 }
  		     }
  		 }
! 	       if (!type || !TYPE_P (type))
  		 error ("friend declaration does not name a class or "
  			"function");
  	       else


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