diff options
| -rw-r--r-- | libcxx/include/iterator | 2 | ||||
| -rw-r--r-- | libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/libcxx/include/iterator b/libcxx/include/iterator index bcf142a6c83..f3e7a8a2278 100644 --- a/libcxx/include/iterator +++ b/libcxx/include/iterator @@ -1112,6 +1112,8 @@ typename enable_if >::type __unwrap_iter(__wrap_iter<_Tp*>); +template <class _Tp, class _Alloc> class _LIBCPP_TYPE_VIS_ONLY vector; + template <class _Iter> class __wrap_iter { diff --git a/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp b/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp new file mode 100644 index 00000000000..6522bd3c7bc --- /dev/null +++ b/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// Tests workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64816. + +#include <string> + +void f(const std::string &s) { s.begin(); } + +#include <vector> + +void AppendTo(const std::vector<char> &v) { v.begin(); } + +int main() {} |

