This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]