Re: [C++ PATCH] Deprecate ARM-era for scopes

2018-01-23 Thread Nathan Sidwell
On 01/23/2018 01:27 PM, Mike Stump wrote: On Jan 23, 2018, at 4:18 AM, Nathan Sidwell wrote: As discussed (https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01778.html) this patch deprecates the ARM-era for scope. The code gives: if you use %<-fpermissive%> G++ will accept your code I thin

Re: [C++ PATCH] Deprecate ARM-era for scopes

2018-01-23 Thread Mike Stump
On Jan 23, 2018, at 4:18 AM, Nathan Sidwell wrote: > > As discussed (https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01778.html) this > patch deprecates the ARM-era for scope. The code gives: if you use %<-fpermissive%> G++ will accept your code I think we should no longer recommend a depreca

[C++ PATCH] Deprecate ARM-era for scopes

2018-01-23 Thread Nathan Sidwell
As discussed (https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01778.html) this patch deprecates the ARM-era for scope. a) in c++98 mode with -fpermissive, there's now a deprecation note when we fix up something like for (int i = ...) {} ... i ... // out of scope use of i b) -fno-for-scope