C++ PATCH for c++/49134 (constexpr failures on ARM)

Jason Merrill jason@redhat.com
Mon Jun 6 04:16:00 GMT 2011


build_target_expr was making the assumption that the initializer for a 
temporary should have the same type as the temporary, but that isn't the 
case on ARM, where the ABI is changed to return 'this' from 
constructors.  So I adjusted the assert.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.6.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 49134.patch
Type: text/x-patch
Size: 764 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110606/53d96f03/attachment.bin>


More information about the Gcc-patches mailing list