[Bug c++/14804] [3.3/3.4/3.5 regression] initializing const data with reinterpret_cast-ed pointer-to-member function crashes
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-01 20:45 -------
Subject: Bug 14804
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rth@gcc.gnu.org 2004-04-01 20:45:02
Modified files:
gcc/cp : ChangeLog decl.c typeck2.c
Added files:
gcc/testsuite/g++.dg/init: static2.C
Log message:
PR c++/14804
* decl.c (cp_finish_decl): Preserve TREE_READONLY more often.
* typeck2.c (split_nonconstant_init): Clear TREE_READONLY.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4023&r2=1.4024
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1200&r2=1.1201
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&r1=1.155&r2=1.156
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/static2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14804
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: