On Tue, Feb 13, 2024 at 02:24:11PM -0500, Marek Polacek wrote: > Sadly, I must admit this is looking like GCC 15 material.
If deferred for GCC 15, can't we at least do some minimal change and just guard the member pedwarn with cxx_dialect < something? Given that -Wextra-semi isn't on by default nor included in -Wall -W, I think even accepting this for GCC 14 wouldn't be that risky. Jason's decision. + /* If -Wextra-semi wasn't specified, warn only when -pedantic is in + effect in C++11 and below. DR 1693 added "empty-declaration" to the + syntax for "member-declaration". */ + else if (pedantic && cxx_dialect < cxx14) If it was a DR, did it apply just to C++14 or changed C++11 as well? Jakub