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

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:40d234dd6439e8c8cfbf3f375a61906aed35c80d

commit r15-1898-g40d234dd6439e8c8cfbf3f375a61906aed35c80d
Author: Jonathan Wakely <jwak...@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.

Reply via email to