This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4207: ICE at syntax error in enum declaration
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4207: ICE at syntax error in enum declaration
- From: wanderer at rsu dot ru
- Date: 3 Sep 2001 15:02:55 -0000
- Reply-To: wanderer at rsu dot ru
>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 <sys/types.h>
class A {
public:
enum ::size_t {CONSTANT = 0}; //ERROR
};
--------------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: