------- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-21 23:06 ------- You are violating C/C++ aliasing rules: Length(const Length &o) { *((unsigned int *)this) = *((unsigned int *)&o); }
Use either -fno-strict-aliasing or use memcpy but even then that might not work as this is a non-POD. *** 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=27241