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

H.J. Lu hjl.tools@gmail.com
Wed Jan 13 17:45:00 GMT 2010


On Wed, Jan 13, 2010 at 7:07 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Dec 18, 2009 at 8:15 AM, Jason Merrill <jason@redhat.com> wrote:
>> 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.
>>
>
> This caused:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42725
>
>

And

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42701

I think they are the same bug. PR 42701 has a small
testcase.

-- 
H.J.



More information about the Gcc-patches mailing list