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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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  <ja...@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

Reply via email to