This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/3478] [3.4 regression] Accepts invalid "enum typename"
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2004 20:33:47 -0000
- Subject: [Bug c++/3478] [3.4 regression] Accepts invalid "enum typename"
- References: <20010629080601.3478.jthorn@thp.univie.ac.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-11 20:33 -------
Subject: Bug 3478
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ian@gcc.gnu.org 2004-01-11 20:33:36
Modified files:
gcc/cp : ChangeLog parser.c
Log message:
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".
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3865&r2=1.3866
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.148&r2=1.149
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3478