https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121811
--- Comment #13 from Thiago Macieira <thiago at kde dot org> --- (In reply to Andrew Pinski from comment #12) > >* GCC + libc++: fails, because it uses the failing C header > > This sounds like a bug in libc++ for not providing a C++26 header. They may argue otherwise, because the Clang header does work in C++ and that therefore there should be a single header provided by the compiler that works in both C23 and C++26. I haven't asked. In any case, the issue is backwards compatibility because C++26 blessed a header that existed in C23 without adding a new detection mechanism (there's nothing in <version> for it). The GCC header became retroactively valid in C++, but doesn't compile.
