This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70096] [6 Regression] [Invalid codegen] Read of uninitialized value in ref-qualified pointer to member function
- From: "amodra at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Apr 2016 22:59:08 +0000
- Subject: [Bug c++/70096] [6 Regression] [Invalid codegen] Read of uninitialized value in ref-qualified pointer to member function
- Auto-submitted: auto-generated
- References: <bug-70096-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70096
--- Comment #8 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