]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix tests that fail without PCH
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jun 2019 08:18:17 +0000 (08:18 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jun 2019 08:18:17 +0000 (08:18 +0000)
commit9462a83e712b1e8621ffee998ccd3291df889c4b
treeaa317d58a6f20f203c9bfbd20061d1dc039ddd9e
parent8a5a7d1cd0a1d9194af36230561c85e760fec592
Fix tests that fail without PCH

The recent change to stop transitively including <string> broke some
tests, but only when the library is configured without PCH, because
otherwise the <string> header still gets included via the precompiled
<bits/stdc++.h> header.

* testsuite/20_util/bad_function_call/what.cc: Include <string> header
for std::string.
* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
* testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
header for std::allocator.
* testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
using-declaration for std::size_t.
* testsuite/23_containers/array/tuple_interface/tuple_size.cc:
Likewise.
* testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
std::istream.
* testsuite/23_containers/vector/cons/55977.cc: Likewise.
* testsuite/experimental/map/erasure.cc: Include <string> for
std::string.
* testsuite/experimental/unordered_map/erasure.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272376 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/bad_function_call/what.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc
libstdc++-v3/testsuite/20_util/tuple/cons/allocator_with_any.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_size.cc
libstdc++-v3/testsuite/23_containers/deque/cons/55977.cc
libstdc++-v3/testsuite/23_containers/vector/cons/55977.cc
libstdc++-v3/testsuite/experimental/map/erasure.cc
libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc