re PR c++/3478 (Accepts invalid "enum typename")
authorIan Lance Taylor <ian@wasabisystems.com>
Sun, 11 Jan 2004 20:33:35 +0000 (20:33 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sun, 11 Jan 2004 20:33:35 +0000 (20:33 +0000)
commite90c7b8433d23ac0d385e104d67f8a7c458dced0
tree7162d93bf8ecdf6e43e1a396f1e68ea82f4cac8d
parentb4544c366abe2b38430cd70c0954ebeaaab8c401
re PR c++/3478 (Accepts invalid "enum typename")

PR c++/3478
* parser.c (cp_parser_decl_specifier_seq): If the first decl_spec
is error_mark_node, don't add any more decl_specs.
(cp_parser_init_declarator): After committing to a declaration, if
the decl_specifiers start with error_mark_node, issue an error and
change the type to "int".

From-SVN: r75688
gcc/cp/ChangeLog
gcc/cp/parser.c