This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20184] assignment error in inline function


------- Additional Comments From falk at debian dot org  2005-02-24 10:58 -------
(In reply to comment #3)
> The reinterpret_cast solves the problem with this old code.
> 
> inline data::data ( uint32 num ) { *reinterpret_cast<uint64*>(this) = num; }

That is pure luck; the code is still invalid.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20184


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]