C++ PATCH for c++/42415 (bad assembly output for explicit constructor call)

Jason Merrill jason@redhat.com
Fri Dec 18 17:24:00 GMT 2009


DR 147 changed A::A() from a functional cast to an (ill-formed) direct 
call to the constructor.  In the testcase for 42415 we weren't catching 
the ill-formedness and therefore generated a call to the maybe-in-charge 
constructor which doesn't really exist.

Fixed thus.  -fpermissive will allow the testcase to compile as in 4.4, 
with a warning.

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


More information about the Gcc-patches mailing list