https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104866
Bug ID: 104866 Summary: this_thread_sleep.h doesn't compile if _GLIBCXX_NO_SLEEP is defined Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dv at vollmann dot ch CC: dv at vollmann dot ch Target Milestone: --- Host: x86_64-linux-gnu Target: avr Build: x86_64-linux-gnu Created attachment 52596 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52596&action=edit Patch to fix the problem this_thread_sleep.h opens the namespace std::this_thread before checking for the define but then closes it inside the #ifndef