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

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

https://gcc.gnu.org/g:c50b8d550d20e42e88b70f0a6e0f6798e30ddcb2

commit r14-11769-gc50b8d550d20e42e88b70f0a6e0f6798e30ddcb2
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri May 9 17:50:52 2025 +0100

    libstdc++: Restore std::scoped_lock for non-gthreads targets [PR120198]

    This was a regression introduced with using version.def to define
    feature test macros (r14-3248-g083b7f2833d71d). std::scoped_lock doesn't
    need to depend on gthreads and so can be defined unconditionally, even
    for freestanding.

    libstdc++-v3/ChangeLog:

            PR libstdc++/120198
            * include/bits/version.def (scoped_lock): Do not depend on
            gthreads or hosted.
            * include/bits/version.h: Regenerate.
            * include/std/mutex (scoped_lock): Update comment.
            * testsuite/30_threads/scoped_lock/requirements/typedefs.cc:
            Remove dg-require-gthreads and use custom lockable type instead
            of std::mutex. Check that typedef is only present for a single
            template argument.

    Reviewed-by: Tomasz KamiÅski <tkami...@redhat.com>
    (cherry picked from commit bdd2753f5f021a15a6c4ef02565356985fea1300)

Reply via email to