This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24907] [3.4/4.0/4.1 Regression] "int x, ;" accepted



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]