public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36404]  New: [4.2/4.3/4.4 regression] ICE with invalid enum
@ 2008-06-01 10:17 reichelt at gcc dot gnu dot org
  2008-06-01 10:18 ` [Bug c++/36404] " 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-06-01 10:17 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.2.0:

================================
struct A
{
  A(int);
  template<int> enum { e };
};

A a(A::e);
================================

bug.cc:4: error: template class without a name
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

The compiler also crashed before GCC 3.4.4.


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with invalid enum
           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=36404


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-04-22 15:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-01 10:17 [Bug c++/36404] New: [4.2/4.3/4.4 regression] ICE with invalid enum reichelt at gcc dot gnu dot org
2008-06-01 10:18 ` [Bug c++/36404] " reichelt at gcc dot gnu dot org
2008-06-02 11:40 ` paolo dot carlini at oracle dot com
2008-06-02 21:29 ` paolo at gcc dot gnu dot org
2008-06-02 21:29 ` [Bug c++/36404] [4.2/4.3 " paolo dot carlini at oracle dot com
2008-06-06 20:29 ` rguenth at gcc dot gnu dot org
2009-03-31 20:53 ` [Bug c++/36404] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-22 15:28 ` rguenth 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).