[Bug libstdc++/115807] C++23 P0943R6 <stdatomic.h> does't qualify std::atomic in #define _Atomic properly
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 9 22:30:28 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115807
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:987e70f4290451abd98eda8b82e97b4ad25ee3c2
commit r12-10608-g987e70f4290451abd98eda8b82e97b4ad25ee3c2
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sun Jul 7 12:22:42 2024 +0100
libstdc++: Fix _Atomic(T) macro in <stdatomic.h> [PR115807]
The definition of the _Atomic(T) macro needs to refer to ::std::atomic,
not some other std::atomic relative to the current namespace.
libstdc++-v3/ChangeLog:
PR libstdc++/115807
* include/c_compatibility/stdatomic.h (_Atomic): Ensure it
refers to std::atomic in the global namespace.
* testsuite/29_atomics/headers/stdatomic.h/115807.cc: New test.
(cherry picked from commit 40d234dd6439e8c8cfbf3f375a61906aed35c80d)
More information about the Gcc-bugs
mailing list