From: Davide Italiano Date: Sat, 10 Jun 2017 23:18:32 +0000 (+0000) Subject: [SmallVector] Reinstate the typedefs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2f333b1c366008edbe767d4376f3ff9a1582027;p=llvm [SmallVector] Reinstate the typedefs. They're unused with recent versions of libstdc++ but older ones (e.g. libstdc++ 4.9 still requires them). Maybe we should bump the requirements on the minimum version to make GCC 7 happy, but in the meanwhile we need to live with the warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305158 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/SmallVectorTest.cpp b/unittests/ADT/SmallVectorTest.cpp index 15687b3e7ac..5903ce8c08e 100644 --- a/unittests/ADT/SmallVectorTest.cpp +++ b/unittests/ADT/SmallVectorTest.cpp @@ -446,6 +446,9 @@ TYPED_TEST(SmallVectorTest, AppendRepeatedNonForwardIterator) { struct output_iterator { typedef std::output_iterator_tag iterator_category; typedef int value_type; + typedef int difference_type; + typedef value_type *pointer; + typedef value_type &reference; operator int() { return 2; } operator Constructable() { return 7; } };