This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2004 13:44:09 -0000
- Subject: [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
- References: <20031014002907.12608.carlo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-01 13:43 -------
Still happens on the mainline:
pr12608.cc:18044: internal compiler error: tree check: expected class 't', have 'x'
(error_mark) in cp_parser_class_specifier, at cp/parser.c:11854
Please submit a full bug report,with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I might submit a simple fix for this.
if (type != error_mark_node)
type = finish_struct (type, attributes);
if (pop_p)
pop_scope (CP_DECL_CONTEXT (TYPE_MAIN_DECL (type)));
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-12-23 19:17:26 |2004-04-01 13:44:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608