https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917
--- Comment #6 from Frank Heckenbach <f.heckenb...@fh-soft.de> --- (In reply to Jonathan Wakely from comment #1) > This extension uses syntax which is not valid in C++20 so it does not > conflict with the base standard, and is always enabled. You should have been > using -pedantic if you wanted to diagnose all extensions: Actually, I did (though I hadn't mentioned it in my original bug report): g++-12 -std=c++23 test.cpp -c -Wall -Wextra -pedantic -Wpedantic -pedantic-errors gives not output. Still not pedantic enough? Which options do I need then to enable really only standard features? (Or at least features that won't simply disappear!) > I don't see any special circumstances. That G++ accepted it without warning, despite the options above.