------- Comment #4 from pluto at agmk dot net 2006-05-05 15:10 ------- (In reply to comment #3) > You cannot. Though you can try extending c-common.c:strict_aliasing_warning > and > cp/typeck.c:build_reinterpret_cast_1 to warn in this case.
sorry, but i don't know compiler internals to do this. btw, maybe we should collect in one PR examples of undetected aliasing violations for future work on better detection? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27417