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