public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O
@ 2013-06-01 10:14 f.heckenbach@fh-soft.de
2013-06-03 8:46 ` [Bug middle-end/57499] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: f.heckenbach@fh-soft.de @ 2013-06-01 10:14 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8/4.9 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
@ 2013-06-03 8:46 ` rguenth at gcc dot gnu.org
2013-10-30 12:38 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-06-03 8:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Known to work| |4.4.7
Keywords| |ice-on-invalid-code
Last reconfirmed| |2013-06-03
Component|c++ |middle-end
Ever confirmed|0 |1
Summary|ICE when noreturn |[4.7/4.8/4.9 Regression]
|destructor returns after |ICE when noreturn
|throw with -O |destructor returns after
| |throw with -O
Target Milestone|--- |4.7.4
Known to fail| |4.5.4, 4.6.4, 4.7.2, 4.8.1,
| |4.9.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
0xd197c5 crash_signal
/space/rguenther/src/svn/trunk/gcc/toplev.c:333
0xd745a5 infinite_empty_loop_p
/space/rguenther/src/svn/trunk/gcc/tree-eh.c:4187
0xd74908 cleanup_empty_eh
/space/rguenther/src/svn/trunk/gcc/tree-eh.c:4263
0xd74d7e cleanup_all_empty_eh
/space/rguenther/src/svn/trunk/gcc/tree-eh.c:4376
0xd74e0a execute_cleanup_eh_1
/space/rguenther/src/svn/trunk/gcc/tree-eh.c:4405
0xd74e5b execute_cleanup_eh
/space/rguenther/src/svn/trunk/gcc/tree-eh.c:4430
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8/4.9 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
2013-06-03 8:46 ` [Bug middle-end/57499] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-10-30 12:38 ` rguenth at gcc dot gnu.org
2014-02-04 10:20 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-30 12:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8/4.9 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
2013-06-03 8:46 ` [Bug middle-end/57499] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-10-30 12:38 ` rguenth at gcc dot gnu.org
@ 2014-02-04 10:20 ` jakub at gcc dot gnu.org
2014-02-04 12:55 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-04 10:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Likely started with r151696.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8/4.9 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
` (2 preceding siblings ...)
2014-02-04 10:20 ` jakub at gcc dot gnu.org
@ 2014-02-04 12:55 ` jakub at gcc dot gnu.org
2014-02-05 14:35 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-04 12:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 32037
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32037&action=edit
gcc47-pr57499.patch
Untested fix.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8/4.9 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
` (3 preceding siblings ...)
2014-02-04 12:55 ` jakub at gcc dot gnu.org
@ 2014-02-05 14:35 ` jakub at gcc dot gnu.org
2014-02-05 14:41 ` [Bug middle-end/57499] [4.7/4.8 " jakub at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-05 14:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 5 14:34:30 2014
New Revision: 207504
URL: http://gcc.gnu.org/viewcvs?rev=207504&root=gcc&view=rev
Log:
PR middle-end/57499
* tree-eh.c (cleanup_empty_eh): Bail out on totally empty
bb with no successors.
* g++.dg/torture/pr57499.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr57499.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-eh.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
` (4 preceding siblings ...)
2014-02-05 14:35 ` jakub at gcc dot gnu.org
@ 2014-02-05 14:41 ` jakub at gcc dot gnu.org
2014-03-06 7:55 ` jakub at gcc dot gnu.org
2014-06-12 13:28 ` [Bug middle-end/57499] [4.7 " rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-05 14:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.9.0
Summary|[4.7/4.8/4.9 Regression] |[4.7/4.8 Regression] ICE
|ICE when noreturn |when noreturn destructor
|destructor returns after |returns after throw with -O
|throw with -O |
Known to fail|4.9.0 |
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7/4.8 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
` (5 preceding siblings ...)
2014-02-05 14:41 ` [Bug middle-end/57499] [4.7/4.8 " jakub at gcc dot gnu.org
@ 2014-03-06 7:55 ` jakub at gcc dot gnu.org
2014-06-12 13:28 ` [Bug middle-end/57499] [4.7 " rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-06 7:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 6 07:54:28 2014
New Revision: 208363
URL: http://gcc.gnu.org/viewcvs?rev=208363&root=gcc&view=rev
Log:
Backport from mainline
2014-02-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/57499
* tree-eh.c (cleanup_empty_eh): Bail out on totally empty
bb with no successors.
* g++.dg/torture/pr57499.C: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/torture/pr57499.C
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-eh.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/57499] [4.7 Regression] ICE when noreturn destructor returns after throw with -O
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
` (6 preceding siblings ...)
2014-03-06 7:55 ` jakub at gcc dot gnu.org
@ 2014-06-12 13:28 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57499
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|4.7.4 |4.8.3
Known to fail| |4.7.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed in 4.8.3.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-06-12 13:28 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-01 10:14 [Bug c++/57499] New: ICE when noreturn destructor returns after throw with -O f.heckenbach@fh-soft.de
2013-06-03 8:46 ` [Bug middle-end/57499] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-10-30 12:38 ` rguenth at gcc dot gnu.org
2014-02-04 10:20 ` jakub at gcc dot gnu.org
2014-02-04 12:55 ` jakub at gcc dot gnu.org
2014-02-05 14:35 ` jakub at gcc dot gnu.org
2014-02-05 14:41 ` [Bug middle-end/57499] [4.7/4.8 " jakub at gcc dot gnu.org
2014-03-06 7:55 ` jakub at gcc dot gnu.org
2014-06-12 13:28 ` [Bug middle-end/57499] [4.7 " rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).