aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-05-10 22:41:23 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-05-10 22:41:23 +0100
commit1a1e427caae53ffa42d0f192b3d75045e3637539 (patch)
tree203e529f73adb76020a5f469cde0cff29dbb7be4 /gcc
parent4b7a3ab82f1951b1ab808065cec829fecb27e206 (diff)
downloadgcc-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