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

--- Comment #7 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Tue Apr 12 22:58:36 2016
New Revision: 234924

URL: https://gcc.gnu.org/viewcvs?rev=234924&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-5-branch/gcc/testsuite/g++.dg/template/ptrmem30.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/pt.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Reply via email to