https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760

--- Comment #14 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
My current patch appears to handle that correctly:

$ ./cc1plus -quiet q.C -pedantic-errors -std=c++98 -Wno-error=extra-semi
q.C:3:3: warning: extra ‘;’ outside of a function only allowed in C++11
[-Wextra-semi]
    3 | };;
      |   ^
      |   -

I'll add a test for that combination.

Reply via email to