This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49338] wrong code with -O2 and -O3
- From: "hsmeier at arcor dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Jun 2011 08:59:36 +0000
- Subject: [Bug c++/49338] wrong code with -O2 and -O3
- Auto-submitted: auto-generated
- References: <bug-49338-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49338
--- Comment #6 from Hans Meier <hsmeier at arcor dot de> 2011-06-09 08:59:11 UTC ---
(In reply to comment #2)
> is an obvious aliasing violation.
... and if so, shouldn't -Wstrict-aliasing emit a warning? None of the
mentioned compilers (4.4.6 - 4.6.0) does it.