libstdc++: Use type_identity_t for non-deducible std::atomic_xxx args
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 Jun 2022 15:36:14 +0000 (16:36 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 14 Jun 2022 19:29:48 +0000 (20:29 +0100)
commitd10b3b5c1f61c05b3cf1229d0bd961db3f8ee653
tree5036a227fa1f863b7813ccd021ab2b00225e1a94
parentd1201dbf55a11d391030914985ba6b443e59baa5
libstdc++: Use type_identity_t for non-deducible std::atomic_xxx args

This is LWG 3220 which is about to become Tentatively Ready.

libstdc++-v3/ChangeLog:

* include/std/atomic (__atomic_val_t): Use __type_identity_t
instead of atomic<T>::value_type, as per LWG 3220.
* testsuite/29_atomics/atomic/lwg3220.cc: New test.

(cherry picked from commit 30cc1b65e4efa1a2c57fec5574fcae7a446b822f)
libstdc++-v3/include/std/atomic
libstdc++-v3/testsuite/29_atomics/atomic/lwg3220.cc [new file with mode: 0644]