https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107886
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jamaika from comment #11) > without #define __cpp_lib_atomic_wait 201907L You should not be defining this anyway, it's defined by the library when the feature is supported. You can't change that. Don't ever define these __cpp_* macros. (In reply to Jamaika from comment #12) > with 'latch.h' This is a third-party header that defines its own std::latch, it has nothing to do with GCC.