[Bug other/27417] wrong code or aliasing violation with missed diagnostic?
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Fri May 5 15:10:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list