OSDN Git Service

2005-12-13 Petr Machata <machata@post.cz>
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2005 08:01:53 +0000 (08:01 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2005 08:01:53 +0000 (08:01 +0000)
commitb60e927ab48e632454bc2c2b0aecf460325a8332
treebf8b55646f941b7eb59488051cdbb6a754b306e9
parentae2190f8d489a60530afbb8e96dd1cd9c2efa2ae
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108462 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/comma2.C [new file with mode: 0644]