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

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ah yes, it still needs some rules_counter, just not using the lock-free alias:

--- a/libstdc++-v3/src/c++20/tzdb.cc
+++ b/libstdc++-v3/src/c++20/tzdb.cc
@@ -705,6 +705,8 @@ namespace std::chrono
 #endif // __GTHREADS && __cpp_lib_atomic_wait

     RulesCounter<atomic_signed_lock_free> rules_counter;
+#else
+    RulesCounter<void> rules_counter;
 #endif // __cpp_lib_atomic_lock_free_type_aliases
 #else // TZDB_DISABLED
     _Impl(weak_ptr<tzdb_list::_Node>) { }

Reply via email to