------- Comment #14 from jason at gcc dot gnu dot org 2010-05-19 22:53 ------- In C++, an assignment of a union is defined to be equivalent to a byte copy:
12.8/32 "The implicitly-defined copy assignment operator for a union X copies the object representation (3.9) of X." 3.9/4 "The object representation of an object of type T is the sequence of N unsigned char objects taken up by the object of type T, where N equals sizeof(T)." -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44164