This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r238391 - in /trunk/gcc: cp/ChangeLog cp/parser...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 15 Jul 2016 18:38:32 -0000
- Subject: r238391 - in /trunk/gcc: cp/ChangeLog cp/parser...
Author: jason
Date: Fri Jul 15 18:38:31 2016
New Revision: 238391
URL: https://gcc.gnu.org/viewcvs?rev=238391&root=gcc&view=rev
Log:
PR c++/71604 - type definition in range-based for
PR c++/54430
* parser.c (cp_parser_range_for): Modify IDENTIFIER_BINDING directly.
(cp_parser_simple_declaration): Diagnose type definition in
for-range-declaration.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/range-for31.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/g++.dg/cpp0x/range-for8.C