https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Patrick Pelissier from comment #12) > Is the status really "wontfix"? > > This makes any C library which uses stdatomic.h incompatible with g++ (and <stdatomic.h> is not part of the C++ standard. > more and more C code uses stdatomic.h) which is rather bothersome. clang > doesn't have this issue. Clang allows the C keyword _Atomic in C++. That's not part of the C++ standard either > What prevent stdatomic.h to detect if it is included in C++ mode and > includes C++ <atomic> instead? Even if it did that, it wouldn't guarantee that C's atomic_int and C++'s std::atomic_int are compatible. So you'd still need to rely on non-portable implementation-specific assumptions.