void foo() { struct { struct a _a; } c; } $ gcc bug.c bug.c: In function 'foo': bug.c:4: error: field '_a' has incomplete type bug.c:5: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in gimplify_type_sizes, at gimplify.c:4491 gcc version 4.1.0 20050619
-- Summary: ICE on invalid code. Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pld-linux GCC host triplet: i686-pld-linux GCC target triplet: i686-pld-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22125