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++/31809] [4.1/4.2/4.3 Regression] sometimes TREE_READONLY is still set for non read only variables causing wrong code



------- Comment #4 from jakub at gcc dot gnu dot org  2007-05-30 21:24 -------
Subject: Bug 31809

Author: jakub
Date: Wed May 30 21:24:24 2007
New Revision: 125201

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125201
Log:
        PR c++/31809
        * decl.c (cp_finish_decl): Clear TREE_READONLY flag on TREE_STATIC
        variables that need runtime initialization.

        * g++.dg/opt/static5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/static5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31809


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