https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93470
--- Comment #4 from frankhb1989 at gmail dot com --- (In reply to Jonathan Wakely from comment #3) > (In reply to frankhb1989 from comment #2) > > Sorry, I missed to mention it only failed with `clang++ -std=c++2a` > > If you're going to claim something is broken please don't forget the most > critical piece of information. > True, I should have been mention this in the title of the bug. My mistake to leave "C++2a" but not "Clang++" and forget to rephrase it in the comment with a proper case. > GCC accepts it as an extension, which is also correct. > > You get a diagnostic with -Wsystem-headers, but not by default. Fair point. Glad to see this not depending on the compiler.