On Tue, Apr 12, 2016 at 6:38 AM, Alan Modra <amo...@gmail.com> wrote:
> On Mon, Mar 21, 2016 at 06:35:26PM -0400, Patrick Palka wrote:
> https://gcc.gnu.org/ml/gcc-patches/2016-03/msg01221.html
>> gcc/cp/ChangeLog:
>>
>>       PR c++/70096
>>       * pt.c (tsubst_decl): Clear the DECL_MODE of the new decl.
>>
>> gcc/testsuite/ChangeLog:
>>
>>       PR c++/70096
>>       * g++.dg/template/ptrmem30.C: New test.
>
> Can we have this one on the gcc-5 and gcc-4.9 branches too, please?
> It fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107, which is
> a similar case to pr70096 but has a testcase that fails on the
> branches.
>
> Backporting is simply a matter of applying the patch, but note
> followup patch to the testcase.  I've bootstrapped and regression
> tested on powerpc64le-linux, both branches.
>
> --
> Alan Modra
> Australia Development Lab, IBM

I would appreciate it if someone could backport it for me since I
won't have time today.  BTW I think PARM_DECLs also may have the same
issue where after substitution the DECL_MODE of the specialized
PARM_DECL may not correspond to the TYPE_MODE of its type.

Reply via email to