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 T; - typename std::tuple_element<2, T>::type foo; // expected-error@utility:* {{Index out of bounds in std::tuple_element>}} + std::tuple_element<2, T>::type foo; // expected-error@utility:* {{Index out of bounds in std::tuple_element>}} } 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; - typename std::variant_alternative<4, V>::type foo; // expected-error@variant:* {{Index out of bounds in std::variant_alternative<>}} + std::variant_alternative<4, V>::type foo; // expected-error@variant:* {{Index out of bounds in std::variant_alternative<>}} }