[Bug c++/55893] [4.7/4.8 Regression][C++11] runtime segfault with static const object with virtual destructor

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 9 18:56:00 GMT 2013


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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2013-01-09 18:55:21 UTC ---
Author: jason
Date: Wed Jan  9 18:55:12 2013
New Revision: 195062

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195062
Log:
    PR c++/55893
    * decl.c (cp_finish_decl): Clear TREE_READONLY if the variable
    needs destruction.

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



More information about the Gcc-bugs mailing list