This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/42415 (bad assembly output for explicit constructor call)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Jan 2010 09:45:15 -0800
- Subject: Re: C++ PATCH for c++/42415 (bad assembly output for explicit constructor call)
- References: <4B2BAAA4.2020709@redhat.com> <6dc9ffc81001130707g7652be89kb479301c99929530@mail.gmail.com>
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.