r237629 - in /branches/gcc-6-branch/gcc: cp/Cha...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Tue Jun 21 07:03:00 GMT 2016


Author: jakub
Date: Tue Jun 21 07:02:59 2016
New Revision: 237629

URL: https://gcc.gnu.org/viewcvs?rev=237629&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-6-branch/gcc/testsuite/g++.dg/opt/pr71528.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/decl.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list