https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760
Bug ID: 113760 Summary: gcc rejects valid empty-declaration in pedantic mode Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tanksherman27 at gmail dot com Target Milestone: --- In https://github.com/openjdk/jdk/pull/17687#issuecomment-1926154325 we discovered a possible g++ bug where g++ rejects empty semicolons in pedantic mode, this is rather evident in code like #define DEBUG_ONLY(code) code; DEBUG_ONLY(foo()); which will fire a -Werror warning even in C++11 and above, where such empty declarations are allowed