This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20184] assignment error in inline function
- From: "dirk at cle-mens dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2005 10:38:40 -0000
- Subject: [Bug c++/20184] assignment error in inline function
- References: <20050224101337.20184.dirk@cle-mens.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dirk at cle-mens dot de 2005-02-24 10:38 -------
The reinterpret_cast solves the problem with this old code.
inline data::data ( uint32 num ) { *reinterpret_cast<uint64*>(this) = num; }
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20184