PR c++/3478
commit396d27317d7ba14de49b1a0748b5a5a5a3b839c2
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Jan 2004 20:33:35 +0000 (11 20:33 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Jan 2004 20:33:35 +0000 (11 20:33 +0000)
tree7162d93bf8ecdf6e43e1a396f1e68ea82f4cac8d
parent75abb4b6d25d3767bd22eaa43c11b8aa81df7366
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".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75688 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c