public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37530] New: [4.4 regression] ICE with invalid catch
@ 2008-09-15 21:13 reichelt at gcc dot gnu dot org
2008-09-15 21:13 ` [Bug c++/37530] " reichelt at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-15 21:13 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
======================================
void foo(bool b)
{
if (b)
try { throw 0; } catch (X) {}
}
======================================
bug.cc: In function 'void foo(bool)':
bug.cc:4: error: expected type-specifier before 'X'
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The regression was introduced between 2008-07-26 and 2008-07-29
(probably with the tuples merge).
--
Summary: [4.4 regression] ICE with invalid catch
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
@ 2008-09-15 21:13 ` reichelt at gcc dot gnu dot org
2008-09-15 21:15 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-15 21:13 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
2008-09-15 21:13 ` [Bug c++/37530] " reichelt at gcc dot gnu dot org
@ 2008-09-15 21:15 ` pinskia at gcc dot gnu dot org
2008-09-15 22:21 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-15 21:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-15 21:14 -------
Most likely a dup of bug 37505.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
2008-09-15 21:13 ` [Bug c++/37530] " reichelt at gcc dot gnu dot org
2008-09-15 21:15 ` pinskia at gcc dot gnu dot org
@ 2008-09-15 22:21 ` jakub at gcc dot gnu dot org
2008-09-16 22:09 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-15 22:21 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-15 22:19:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-09-15 22:21 ` jakub at gcc dot gnu dot org
@ 2008-09-16 22:09 ` jakub at gcc dot gnu dot org
2008-09-16 22:11 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-16 22:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-09-16 22:07 -------
Subject: Bug 37530
Author: jakub
Date: Tue Sep 16 22:06:28 2008
New Revision: 140401
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140401
Log:
PR c++/37530
* gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
GIMPLE_TRY if cleanup sequence is empty.
* g++.dg/parse/crash48.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/crash48.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-09-16 22:09 ` jakub at gcc dot gnu dot org
@ 2008-09-16 22:11 ` jakub at gcc dot gnu dot org
2008-09-16 22:18 ` pinskia at gcc dot gnu dot org
2008-09-16 22:22 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-16 22:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-09-16 22:10 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-09-16 22:11 ` jakub at gcc dot gnu dot org
@ 2008-09-16 22:18 ` pinskia at gcc dot gnu dot org
2008-09-16 22:22 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-16 22:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-16 22:16 -------
And in fact the patch which fixed this one also fixed PR 37505.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/37530] [4.4 regression] ICE with invalid catch
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-09-16 22:18 ` pinskia at gcc dot gnu dot org
@ 2008-09-16 22:22 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-16 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2008-09-16 22:20 -------
*** Bug 37505 has been marked as a duplicate of this bug. ***
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37530
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-09-16 22:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-15 21:13 [Bug c++/37530] New: [4.4 regression] ICE with invalid catch reichelt at gcc dot gnu dot org
2008-09-15 21:13 ` [Bug c++/37530] " reichelt at gcc dot gnu dot org
2008-09-15 21:15 ` pinskia at gcc dot gnu dot org
2008-09-15 22:21 ` jakub at gcc dot gnu dot org
2008-09-16 22:09 ` jakub at gcc dot gnu dot org
2008-09-16 22:11 ` jakub at gcc dot gnu dot org
2008-09-16 22:18 ` pinskia at gcc dot gnu dot org
2008-09-16 22:22 ` jakub at gcc dot gnu dot 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).