PR c++/54430
commitd36ce389eff2bce98ffe3384b969b4b5fc20c716
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 19:22:08 +0000 (1 19:22 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 19:22:08 +0000 (1 19:22 +0000)
treec64ed0713431721871f5a948d0649009558ae7f7
parent05b84e7b93d5b64287a648eb0fca6620e9adc67c
PR c++/54430

/cp
2015-10-01  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR c++/54430
* name-lookup.c (push_binding): Make non-static.
* name-lookup.h (push_binding): Declare it.
* parser.c (cp_parser_range_for): Use it, get the range
declaration away from the scope until the range expression
has been parsed, then restore the declaration.

/testsuite
2015-10-01  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR c++/54430
* g++.dg/cpp0x/range-for30.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228354 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for30.C [new file with mode: 0644]