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++/57499] New: ICE when noreturn destructor returns after throw with -O


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


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