[C++ PATCH] Deprecate ARM-era for scopes
authorNathan Sidwell <nathan@acm.org>
Tue, 23 Jan 2018 12:18:50 +0000 (12:18 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 23 Jan 2018 12:18:50 +0000 (12:18 +0000)
commitd55d1e4fa9fbab3e47b91391c6a3986ca9f6f1ff
treeb20dd1b9623a16c511ca0aafb15e4a1cbf191e36
parent9972bbbcbf149667143513e82fb38dffc34aa8f3
[C++ PATCH] Deprecate ARM-era for scopes

https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01940.html
gcc/cp/
Deprecate ARM-era for scope handling
* decl.c (poplevel): Flag_new_for_scope is a boolean-like.
(cxx_init_decl_processing): Deprecate flag_new_for_scope being
cleared.
* name-lookup.c (check_for_out_of_scope_variable): Deprecate and
cleanup handling.
* semantics.c (begin_for_scope): Flag_new_for_scope is
boolean-like.
(finish_for_stmt, begin_range_for_stmt): Likewise.

gcc/
* doc/invoke.texi (ffor-scope): Deprecate.

gcc/cp/
* g++.dg/cpp0x/range-for10.C: Adjust.
* g++.dg/ext/forscope1.C: Adjust.
* g++.dg/ext/forscope2.C: Adjust.
* g++.dg/template/for1.C: Adjust.

From-SVN: r256981
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/semantics.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for10.C
gcc/testsuite/g++.dg/ext/forscope1.C
gcc/testsuite/g++.dg/ext/forscope2.C
gcc/testsuite/g++.dg/template/for1.C