[Bug c++/71528] [5 Regression] multiple extern reference declarations produce uninitialized access
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 7 12:46:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71528
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jul 7 12:45:44 2016
New Revision: 238098
URL: https://gcc.gnu.org/viewcvs?rev=238098&root=gcc&view=rev
Log:
Backported from mainline
2016-06-14 Jakub Jelinek <jakub@redhat.com>
PR c++/71528
* decl.c (duplicate_decls): For DECL_INITIALIZED_P non-external
olddecl vars, preserve their TREE_READONLY bit.
* g++.dg/opt/pr71528.C: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/opt/pr71528.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/decl.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list