http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52632
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-03-20 11:09:43 UTC --- On Tue, 20 Mar 2012, mikpe at it dot uu.se wrote: > either a compile-time error or a link-time error (the latter because gcc > erroneously omits the compile-time error for an invalid type in an unused > sizeof() when optimizing). I'm not aware of such a bug. Please file a separate bug report in Bugzilla with a testcase for this "erroneously omits the compile-time error for an invalid type in an unused sizeof() when optimizing".