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

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Libstdc++ should handle those types being missing, but it doesn't do so
correctly.

Try making the inclusion of <atomic> conditional:

--- include/std/future
+++ include/std/future
@@ -40,7 +40,9 @@
 #include <thread>
 #include <condition_variable>
 #include <system_error>
+#ifdef _GLIBCXX_USE_C99_STDINT_TR1
 #include <atomic>
+#endif
 #include <bits/functexcept.h>
 #include <bits/unique_ptr.h>
 #include <bits/shared_ptr.h>

Reply via email to