C++ PATCH to build_reinterpret_cast_1 for c++/37204

Jason Merrill jason@redhat.com
Mon Oct 12 06:12:00 GMT 2009


It seems the reinterpret_cast code was never updated to handle rvalue 
refs properly; it generated *(T*)&exp for reinterpret_cast<T&> or <T&&>.

The strict_aliasing_warning bit is to cover the -Wstrict-aliasing 
warning that we would otherwise lose by not calling cp_build_indirect_ref.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 37204.patch
Type: text/x-patch
Size: 1418 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091012/59df1d6d/attachment.bin>


More information about the Gcc-patches mailing list