This is the mail archive of the gcc-bugs@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]

[Bug c++/70096] [6 Regression] [Invalid codegen] Read of uninitialized value in ref-qualified pointer to member function


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

--- Comment #9 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

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