[Bug c++/38297] O2 causes invalid code
cdfrey at netdirect dot ca
gcc-bugzilla@gcc.gnu.org
Fri Nov 28 23:37:00 GMT 2008
------- Comment #12 from cdfrey at netdirect dot ca 2008-11-28 23:36 -------
> The reason why the union case is considered
> unspecified is because it depends on the under
> laying bit representation of float.
That makes sense. In this case, it's not really a type punning issue and more
of a float issue. We'd be up the same creek without a paddle if we used
memcpy() on floats too.
Thanks,
- Chris
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38297
More information about the Gcc-bugs
mailing list