]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix failures in new std::complex test [PR119144]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Mar 2025 16:04:05 +0000 (16:04 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 6 Mar 2025 16:08:02 +0000 (16:08 +0000)
commitd2b022e38a778d64350f4d4236a2c8a36e0e621c
tree69418b7e8dc5a2f6798994655c93e47cdbd99084
parent2c6ab4c443ae32782579f9bf948e9cef4e812ace
libstdc++: Fix failures in new std::complex test [PR119144]

This test fails due to duplicate explicit instantiations on targets
where size_t and unsigned int are the same type. It also fails with
-D_GLIBCXX_USE_CXX11_ABI=0 due to using std::string in constexpr
functions, and with --disable-libstdcxx-pch due to not including
<algorithm> for ranges::fold_left.

libstdc++-v3/ChangeLog:

PR libstdc++/119144
* testsuite/26_numerics/complex/tuple_like.cc: Include
<algorithm>, replace std::string with std::string_view,
instantiate tests for long instead of size_t.
libstdc++-v3/testsuite/26_numerics/complex/tuple_like.cc