This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32677] optimizer fails properly accessing argument
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2007 18:23:39 -0000
- Subject: [Bug c++/32677] optimizer fails properly accessing argument
- References: <bug-32677-9184@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-08 18:23 -------
You are violating C/C++ aliasing rules. You are accessing a long as an
unsigned int which is not allowed by C/C++ and is undefined. It is allowed to
access an int as a unsigned int and a long as an unsigned long but not long as
an int or an int as a long.
*** This bug has been marked as a duplicate of 21920 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32677