https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #8 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Tue Apr 12 22:59:05 2016
New Revision: 234925

URL: https://gcc.gnu.org/viewcvs?rev=234925&root=gcc&view=rev
Log:
Fix target/70107, another case of PR c++/70096

gcc/cp/
        PR target/70107
        PR c++/70096
        * pt.c (tsubst_decl): Clear the DECL_MODE of the new decl.

gcc/testsuite/
        * g++.dg/template/ptrmem30.C (read): Rename to data_read.
        (Holder::foo): Reflect this.

        PR c++/70096
        * g++.dg/template/ptrmem30.C: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/ptrmem30.C
Modified:
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/pt.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog

Reply via email to