This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O
- From: "f dot heckenbach at fh-soft dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Jun 2013 10:14:14 +0000
- Subject: [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O
- Auto-submitted: auto-generated
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