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
Even though PR 22028 has a different testcase this is the same bug. *** This bug has been marked as a duplicate of 22028 ***