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

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

https://gcc.gnu.org/g:161fb9dfc886afb70dcfb45a51571df5e3fce9eb

commit r10-8410-g161fb9dfc886afb70dcfb45a51571df5e3fce9eb
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed May 27 22:55:21 2020 +0100

    libstdc++: Strip cv-qualifiers in std::atomic<FP> (PR 95282)

    This squashes two commits, r11-674 and r11-1401.

            PR libstdc++/95282
            * include/bits/atomic_base.h (__atomic_impl::load): Add
            const-qualifier to parameter so that _Tp is deduced as the
            non-const type, and use _Val to get the unqualified type.
            (__atomic_impl::exchange): Use the _Val alias to remove
            volatile from the reinterpret_cast result type.
            * testsuite/29_atomics/atomic_float/95282.cc: New test.

    (cherry picked from commit e40b11a91cb345db1324c3cb8f75b01e28056693)

Reply via email to