This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27955] friend members produce different results
- 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 Jun 2006 14:23:20 -0000
- Subject: [Bug c++/27955] friend members produce different results
- References: <bug-27955-12800@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 2006-06-08 14:23 -------
reinterpret_cast<unsigned int&>(t) = 1077936128; //binary float
reinterpret_cast<unsigned int&>(t) = 1077936128; //binary float value
You are violating C/C++ aliasing rules as you are accessing a float as int.
*** This bug has been marked as a duplicate of 21920 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27955