[PATCH] D38628: Remove unneeded typename from test

Roger Ferrer Ibanez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 9 00:40:05 PDT 2017


rogfer01 updated this revision to Diff 118183.
rogfer01 added a comment.

- Remove another instance of this issue


https://reviews.llvm.org/D38628

Files:
  test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
  test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp


Index: test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
===================================================================
--- test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
+++ test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp
@@ -28,5 +28,5 @@
 
 int main() {
     using V = std::variant<int, void *, const void *, long double>;
-    typename std::variant_alternative<4, V>::type foo;  // expected-error at variant:* {{Index out of bounds in std::variant_alternative<>}}
+    std::variant_alternative<4, V>::type foo;  // expected-error at variant:* {{Index out of bounds in std::variant_alternative<>}}
 }
Index: test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
===================================================================
--- test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
+++ test/std/utilities/utility/pairs/pair.astuple/tuple_element.fail.cpp
@@ -18,5 +18,5 @@
 int main()
 {
     typedef std::pair<int, short> T;
-    typename std::tuple_element<2, T>::type foo; // expected-error at utility:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}
+    std::tuple_element<2, T>::type foo; // expected-error at utility:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38628.118183.patch
Type: text/x-patch
Size: 1315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171009/0e82c9cc/attachment-0001.bin>


More information about the cfe-commits mailing list