[Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O
f.heckenbach@fh-soft.de
gcc-bugzilla@gcc.gnu.org
Sat Jun 1 10:14:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Bug ID: 57499
Summary: ICE when noreturn destructor returns after throw with
-O
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: f.heckenbach@fh-soft.de
Created attachment 30238
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30238&action=edit
Test case
Got this while triaging #57498. The test program is clearly wrong, but since
ICEs should always be reported ...
% g++-4.7 -O test.cpp
test.cpp: In destructor 'foo::~foo()':
test.cpp:7:3: warning: 'noreturn' function does return [enabled by default]
test.cpp: In function 'int main()':
test.cpp:14:1: internal compiler error: Segmentation fault
More information about the Gcc-bugs
mailing list