------- Comment #7 from darkjames at darkjames dot ath dot cx 2006-10-25 17:24 ------- Ok, one more question, is it possible to gcc print some warnings about code like that? Cause even with -Wall it doesn't ;( gcc4 is quite more verbose than gcc3 so I think It'll be better to print warning about situation which doesn't even generate invalid code...
which actually -Wstrict-aliasing does (according to manpage), but neither -Wstrict-aliasing nor -Wstrict-aliasing=2 prints warning in that testcode... I hope it's possible, thx for all. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29592