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++/63985] Accepts invalid range-based for declaration


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63985

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Dec 24 09:07:23 2014
New Revision: 219054

URL: https://gcc.gnu.org/viewcvs?rev=219054&root=gcc&view=rev
Log:
/cp
2014-12-04  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/63985
    * parser.c (cp_parser_for_init_statement): Reject invalid declarations
    in range-based for loops.

/testsuite
2014-12-04  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/63985
    * g++.dg/cpp0x/range-for29.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/range-for29.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


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