This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA (make_dispatcher_decl): PATCH for c++/83911, ICE with multiversioned constructor


On Wed, Mar 14, 2018 at 8:57 PM, Jason Merrill <jason@redhat.com> wrote:
> Ping
>
> On Fri, Mar 2, 2018 at 1:23 PM, Jason Merrill <jason@redhat.com> wrote:
>> As I mentioned in the PR, the problem here is that we're replacing a
>> constructor with a dispatcher function which doesn't look much like a
>> constructor.  This patch adjusts make_dispatcher_decl to make it look
>> more like the functions it dispatches to, but other things are certain
>> to break for similar reasons down the road.  A proper solution should
>> be more transparent, like thunks.
>>
>> Tested x86_64-pc-linux-gnu.  Does this seem worth applying to fix the
>> regression?

The patch looks reasonable to me, you probably know best whether
the cp/ parts are risky or not ;)

So - OK from my POV.

And yes, thunks may be a better representation for the dispatcher.

Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]