public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum
@ 2004-10-23 22:52 reichelt at gcc dot gnu dot org
  2004-10-23 23:07 ` [Bug c++/18123] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-23 22:52 UTC (permalink / raw)
  To: gcc-bugs

Compiling the following invalid ocde snippet I get an ICE:

==============================
template<int> enum E { e };
==============================

bug.cc:1: error: template declaration of 'enum E'
bug.cc:1: internal compiler error: tree check: expected class 'declaration',
have 'exceptional' (error_mark) in pushdecl, at cp/name-lookup.c:641
Please submit a full bug report, [etc.]

The regression appeared with Kriang's patch
http://gcc.gnu.org/ml/gcc-cvs/2003-10/msg00781.html

Looks like some function cannot deal with the returned error_mark_node
in push_template_decl_real.

-- 
           Summary: [3.4/4.0 regression] ICE on templated enum
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,lerdsuwa at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123


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

end of thread, other threads:[~2004-12-02 11:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
2004-10-23 23:07 ` [Bug c++/18123] " pinskia at gcc dot gnu dot org
2004-10-23 23:08 ` pinskia at gcc dot gnu dot org
2004-10-24  8:44 ` lerdsuwa at gcc dot gnu dot org
2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
2004-11-03 12:22 ` lerdsuwa at gcc dot gnu dot org
2004-11-09 16:18 ` lerdsuwa at gcc dot gnu dot org
2004-11-11 14:17 ` lerdsuwa at gcc dot gnu dot org
2004-12-02 11:35 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:51 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:52 ` lerdsuwa 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).