diff options
author | Ian Lance Taylor <ian@wasabisystems.com> | 2004-01-11 20:33:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2004-01-11 20:33:35 +0000 |
commit | e90c7b8433d23ac0d385e104d67f8a7c458dced0 (patch) | |
tree | 7162d93bf8ecdf6e43e1a396f1e68ea82f4cac8d /gcc/c-decl.c | |
parent | b4544c366abe2b38430cd70c0954ebeaaab8c401 (diff) | |
download | gcc-e90c7b8433d23ac0d385e104d67f8a7c458dced0.zip gcc-e90c7b8433d23ac0d385e104d67f8a7c458dced0.tar.gz gcc-e90c7b8433d23ac0d385e104d67f8a7c458dced0.tar.bz2 |
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
Diffstat (limited to 'gcc/c-decl.c')
0 files changed, 0 insertions, 0 deletions