diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-05-10 22:41:23 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-05-10 22:41:23 +0100 |
commit | 1a1e427caae53ffa42d0f192b3d75045e3637539 (patch) | |
tree | 203e529f73adb76020a5f469cde0cff29dbb7be4 /gcc | |
parent | 4b7a3ab82f1951b1ab808065cec829fecb27e206 (diff) | |
download | gcc-1a1e427caae53ffa42d0f192b3d75045e3637539.zip gcc-1a1e427caae53ffa42d0f192b3d75045e3637539.tar.gz gcc-1a1e427caae53ffa42d0f192b3d75045e3637539.tar.bz2 |
PR libstdc++/81266 fix std::thread::native_handle_type test
The test uses remove_pointer because in most cases native_handle_type is
a pointer to the actual type that the C++ class contains. However, for
std::thread, native_handle_type is the same type as the type contained
in std::thread, and so remove_pointer is not needed. On targets where
pthread_t is a pointer type remove_pointer<native_handle_type> is not a
no-op, instead it transforms pthread_t and causes the test to fail.
The fix is to not apply remove_pointer when testing std::thread.
PR libstdc++/81266
* testsuite/util/thread/all.h: Do not use remove_pointer for
std::thread::native_handle_type.
From-SVN: r271080
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions