This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24907] [3.4/4.0/4.1 Regression] "int x, ;" accepted
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2005 08:16:27 -0000
- Subject: [Bug c++/24907] [3.4/4.0/4.1 Regression] "int x, ;" accepted
- References: <bug-24907-296@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2005-12-13 08:16 -------
Subject: Bug 24907
Author: jakub
Date: Tue Dec 13 08:16:24 2005
New Revision: 108467
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108467
Log:
2005-12-13 Petr Machata <machata@post.cz>
PR c++/24907
* parser.c (cp_parser_simple_declaration): Require comma at the
beginning of processing second and later declarators, instead of
allowing the comma at the end of each iteration.
* g++.dg/parse/comma2.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/comma2.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24907