PR c++/71604 - type definition in range-based for
authorJason Merrill <jason@redhat.com>
Fri, 15 Jul 2016 18:38:31 +0000 (14:38 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Jul 2016 18:38:31 +0000 (14:38 -0400)
commit37a92c0ca231f3767dd905f155fb8d9a20369f2b
tree8579794f6a66c6d0a43e524e60b1dbd9780d1d22
parentaa30dfadf3234caa8a29ef23ddc5932101a0e430
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.

From-SVN: r238391
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/range-for31.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for8.C