This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/36580] New: ICE at -O2 and above (with strict aliasing) with invalid Objective-C code.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2008 18:58:21 -0000
- Subject: [Bug objc/36580] New: ICE at -O2 and above (with strict aliasing) with invalid Objective-C code.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
struct objc_class { } ;
object_get_class(id object)
{
(Class)object;
}
struct objc_class {};
--- CUT ---
We get:
IMP.mi:6: error: redefinition of 'struct objc_class'
IMP.mi:6: internal compiler error: in layout_type, at stor-layout.c:1878
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
I don't know if this is a regression of not. I found this while testing the
tuples branch which included the wrong include directories and messed up the
code.
--
Summary: ICE at -O2 and above (with strict aliasing) with invalid
Objective-C code.
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36580