re PR c++/24907 ("int x, ;" accepted)
authorPetr Machata <machata@post.cz>
Tue, 13 Dec 2005 08:01:53 +0000 (09:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Dec 2005 08:01:53 +0000 (09:01 +0100)
commit6d32822515d3fee23547ea9a680f13e27e877795
treebf8b55646f941b7eb59488051cdbb6a754b306e9
parent7e825da03edc82020de4d245b22fb123f5e976d8
re PR c++/24907 ("int x, ;" accepted)

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.

From-SVN: r108462
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/comma2.C [new file with mode: 0644]