This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++] Deprecate old for-scope handling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]