This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14476] [3.3/3.4/3.5 Regression] ICE after error about enum not being defined when using it as a bit field
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2004 04:57:47 -0000
- Subject: [Bug c++/14476] [3.3/3.4/3.5 Regression] ICE after error about enum not being defined when using it as a bit field
- References: <20040308044540.14476.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-03-08 04:57 -------
Subject: Re: [3.3/3.4/3.5 Regression] ICE after error about enum not being defined when using it as a bit field
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Forgot to say this is the ICE I get on the mainline:
| test5.c:3: error: use of enum `tree_code' without previous declaration
| test5.c:3: error: field `code' has incomplete type
| test5.c:2: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in
| layout_class_type, at cp/class.c:4626
This is ICE caused by the compiler trying to be overly helpful in
thinking that by recording "code" as member he would be able to
"process more". It could just ignore "code" after issuing the error.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14476