https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121811

--- Comment #4 from Thiago Macieira <thiago at kde dot org> ---
(In reply to Andrew Pinski from comment #1)
> It is a c only header ...
> 
> C++ does not define it yet.

No, it is C++26 with
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3161r2.html, which is
listed as met for GCC 15 in
https://en.cppreference.com/w/cpp/compiler_support/26.html.

> C++26 support in gcc is experimental so it wont be backported.

I understand it is, but the problem is that it currently fails to compile even
though I've followed procedure to verify that support is present, as per C++26
guidelines. My code works in GCC 15, it just fails in GCC 14.

Moreover, the bigger issue is not the C++26 support. It's that it fails with
GCC 14 in C++17, 20, 23 modes because it finds the C header from GCC itself.

If you're not going to fix the C header, can you please add an empty libstdc++
header so that __STDC_VERSION_STDCKDINT_H__ won't get #define'd?

Reply via email to