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



--- Comment #1 from Frank Heckenbach <f.heckenb...@fh-soft.de> 2013-01-07 
07:21:01 UTC ---

Submitted to early. Here's the description:



The attached test case segfault at runtime:



% g++-4.7 -std=c++11 bug.cpp && ./a.out 

Segmentation fault



As far as I can see, that's because tmp is allocated in read-only storage, but

the destructor tries to write to it to update the vtable pointer.



It only happens in C++11 mode.

Reply via email to