This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered
- From: "chuck at vertica dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2006 23:39:27 -0000
- Subject: [Bug tree-optimization/28778] [4.0/4.1 Regression] alias bug with cast and call clobbered
- References: <bug-28778-1447@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #49 from chuck at vertica dot com 2006-11-05 23:39 -------
Sorry.
But maybe it is a FAQ because even with "-Wall" or "-Wstrict-aliasing=2" g++
4.0.2 generates invalid code for this without so much as a peep. I here 4.1 is
better about giving a warning.
I guess it was too much to think "reinterpret_cast means I know what I'm asking
for, so just do what I say".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778