This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++] Deprecate old for-scope handling
- From: Nathan Sidwell <nathan at acm dot org>
- To: Jason Merrill <jason at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 Jan 2018 17:53:47 -0500
- Subject: [C++] Deprecate old for-scope handling
- Authentication-results: sourceware.org; auth=none
Jason,
what do you think about deprecating the ARM-era for-scope handling that
allows:
void f ()
{
for (int i = 0;;);
i = 2;
}
we noisily accept that in c++98 mode with -fpermissive. It wasn't even
well formed then. Implementing this has some unique requirements in the
name-lookup machinery, which I ran into again today.
Option A: rip out now because it's a c++98 ARM-compatibility crutch
Option B: deprecate in gcc-8 and remove in gcc-9.
nathan
--
Nathan Sidwell