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