Fix more -Wshadow warnings introduced by recent Clang change
authorEric Fiselier <eric@efcs.ca>
Tue, 4 Apr 2017 02:54:27 +0000 (02:54 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 4 Apr 2017 02:54:27 +0000 (02:54 +0000)
llvm-svn: 299411

libcxx/test/std/containers/associative/map/map.cons/iter_iter_comp_alloc.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/equal_range.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/find.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/lower_bound.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.ops/upper_bound.pass.cpp
libcxx/test/std/utilities/optional/optional.object/optional.object.assign/assign_value.pass.cpp

index 705fb58..923a212 100644 (file)
@@ -92,7 +92,6 @@ int main()
         V(3, 2),
     };
     {
-    typedef std::pair<const int, double> V;
     typedef min_allocator<V> A;
     typedef test_compare<std::less<int> > C;
     A a;
@@ -106,7 +105,6 @@ int main()
     assert(m.get_allocator() == a);
     }
     {
-    typedef std::pair<const int, double> V;
     typedef explicit_allocator<V> A;
     typedef test_compare<std::less<int> > C;
     A a;
index df46d37..9e67f97 100644 (file)
@@ -183,7 +183,6 @@ int main()
 #endif
 #if TEST_STD_VER > 11
     {
-    typedef std::pair<const int, double> V;
     typedef std::multimap<int, double, std::less<>> M;
 
     typedef std::pair<M::iterator, M::iterator> R;
index f5295e5..474b7b6 100644 (file)
@@ -147,7 +147,6 @@ int main()
 #endif
 #if TEST_STD_VER > 11
     {
-    typedef std::pair<const int, double> V;
     typedef std::multimap<int, double, std::less<>> M;
     typedef M::iterator R;
 
index 8a650fa..28ff332 100644 (file)
@@ -155,7 +155,6 @@ int main()
 #endif
 #if TEST_STD_VER > 11
     {
-    typedef std::pair<const int, double> V;
     typedef std::multimap<int, double, std::less<>> M;
     typedef M::iterator R;
     V ar[] =
index 05760dc..4f4b388 100644 (file)
@@ -155,7 +155,6 @@ int main()
 #endif
 #if TEST_STD_VER > 11
     {
-    typedef std::pair<const int, double> V;
     typedef std::multimap<int, double, std::less<>> M;
     typedef M::iterator R;
     V ar[] =
index 1207e24..0fcc52b 100644 (file)
@@ -216,7 +216,6 @@ void test_throws()
 #ifndef TEST_HAS_NO_EXCEPTIONS
     using T = ThrowAssign;
     {
-        using T = ThrowAssign;
         optional<T> opt;
         try {
             opt = 42;