re PR c++/14804 ([unit-at-a-time] initializing const data with reinterpret_cast-ed...
authorRichard Henderson <rth@redhat.com>
Thu, 1 Apr 2004 20:45:02 +0000 (12:45 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 1 Apr 2004 20:45:02 +0000 (12:45 -0800)
commit6407bc6703d1a33e231e73faabffb6ba2e15ce8d
tree5efbbd81037c2b7cc8dfa82daa715f56b0d77fb7
parent54fdc910cf23c0f0c658db8f9d9e30f006e97513
re PR c++/14804 ([unit-at-a-time] initializing const data with reinterpret_cast-ed pointer-to-member function crashes)

        PR c++/14804
        * decl.c (cp_finish_decl): Preserve TREE_READONLY more often.
        * typeck2.c (split_nonconstant_init): Clear TREE_READONLY.

From-SVN: r80318
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/init/static2.C [new file with mode: 0644]