@IanAbbott re "My take is that modifying a member of a union will damage the values of the other members": It will change what the memory contains -- but I suppose that in the case of a const value, the compiler may decide to not access that memory. It is const, after all.
↧