re PR c++/63985 (Accepts invalid range-based for declaration)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 24 Dec 2014 09:07:23 +0000 (09:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 24 Dec 2014 09:07:23 +0000 (09:07 +0000)
commit36e87c2340eeef6901d76b07cd8e4bcf013c67d9
tree7cb6f4d37bda62e9bdc30a723fe2caec7c1e97c3
parent03267abb359a4228b940534c1aec8ef917f6c4d0
re PR c++/63985 (Accepts invalid range-based for declaration)

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

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