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

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).