This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/47078] [4.6 Regression] ICE on invalid type
- From: "nicola at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 8 Jan 2011 19:45:10 +0000
- Subject: [Bug objc/47078] [4.6 Regression] ICE on invalid type
- Auto-submitted: auto-generated
- References: <bug-47078-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47078
--- Comment #3 from Nicola Pero <nicola at gcc dot gnu.org> 2011-01-08 19:44:34 UTC ---
Author: nicola
Date: Sat Jan 8 19:44:30 2011
New Revision: 168601
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168601
Log:
In gcc/:
2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47078
* c-parser.c (c_parser_objc_type_name): If the type is unknown,
for error recovery purposes behave as if it was not specified so
that the default type is usd.
In gcc/testsuite/:
2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47078
* objc.dg/invalid-method-2.m: New.
* obj-c++.dg/invalid-method-2.mm: New.
In gcc/cp/:
2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47078
* parser.c (cp_parser_objc_typename): If the type is unknown, for
error recovery purposes behave as if it was not specified so that
the default type is used.
Added:
trunk/gcc/testsuite/obj-c++.dg/invalid-method-2.mm
trunk/gcc/testsuite/objc.dg/invalid-method-2.m
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-parser.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog