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++/55893] [4.7/4.8 Regression][C++11] runtime segfault with static const object with virtual destructor


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?


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