-
- Downloads
libstdc++: Fix 29_atomics/headers/atomic/types_std_c++2a_neg.cc for C++23
This test fails when run as C++23 because the <bits/stdc++.h> PCH includes <stdatomic.h> which declares ::memory_order, invalidating the test's assumptions. Disable PCH so that the test verifies that <atomic> doesn't declare ::memory_order, as originally intended. Also fix the using-declaration which would be invalid even if the type was declared in the global namespace, and adjust the expected error. libstdc++-v3/ChangeLog: * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: Fix test to work for C++23 and C++26 too.
Please register or sign in to comment