From mboxrd@z Thu Jan 1 00:00:00 1970 From: wanderer@rsu.ru To: gcc-gnats@gcc.gnu.org Subject: c++/4207: ICE at syntax error in enum declaration Date: Mon, 03 Sep 2001 08:06:00 -0000 Message-id: <20010903150255.1213.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00037.html List-Id: >Number: 4207 >Category: c++ >Synopsis: ICE at syntax error in enum declaration >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Mon Sep 03 08:06:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: wanderer@rsu.ru >Release: gcc version 3.1 20010902 (experimental) >Organization: >Environment: i386-unknown-freebsd4.4 >Description: g++ break with message: g++ -MD -fexceptions -W -Wall -Werror -O -Wuninitialized -Wredundant-decls -pedantic -ansi -march=athlon -mcpu=athlon -O3 -I/home/wanderer/work/cpp/include -DNDEBUG -o bug.o -c bug.cc bug.cc:5: Tree check: expected identifier_node, have type_decl in lookup_tag, at cp/decl.c:5275 Also this ICE exist in gcc version 2.95.3 20010315 (release) [FreeBSD] >How-To-Repeat: Compile file: -------------------- #include class A { public: enum ::size_t {CONSTANT = 0}; //ERROR }; -------------------- >Fix: >Release-Note: >Audit-Trail: >Unformatted: