This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55893] [4.7/4.8 Regression][C++11] runtime segfault with static const object with virtual destructor
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Jan 2013 13:42:30 +0000
- Subject: [Bug c++/55893] [4.7/4.8 Regression][C++11] runtime segfault with static const object with virtual destructor
- Auto-submitted: auto-generated
- References: <bug-55893-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55893
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-08 13:42:30 UTC ---
Caused by http://gcc.gnu.org/PR49673 I believe. Perhaps instead of testing
whether TYPE_NEEDS_CONSTRUCTING we need to check if the type has non-trivial
destructor (is a user destructor on const qualified vars allowed to store into
the var anywhere?) or just a special case virtual dtors that do change the
vtable pointer?