[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

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Apr 1 13:44:00 GMT 2004


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



More information about the Gcc-bugs mailing list