libstdc++: Fix atomic<FP>::load (PR 95282)
commitbbaec68c86f8e89a3460cc022c75d4c4179bfb0a
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 May 2020 21:55:21 +0000 (27 22:55 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 27 May 2020 21:55:21 +0000 (27 22:55 +0100)
tree75cac0ab09b0e5fe8646384072ca04ed0ff541a9
parent6c2582c0406250c66e2eb3651f8e8638796b7f53
libstdc++: Fix atomic<FP>::load (PR 95282)

PR libstdc++/95282
* include/bits/atomic_base.h (__atomic_impl::load): Add
cv-qualifiers to parameter so that _Tp is deduced as the
unqualified type.
* testsuite/29_atomics/atomic_float/95282.cc: New test.
libstdc++-v3/include/bits/atomic_base.h
libstdc++-v3/testsuite/29_atomics/atomic_float/95282.cc [new file with mode: 0644]