This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix PR c++/13558
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 13 Jan 2004 01:44:51 +0100
- Subject: 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