@@ -1,7 +1,7 @@
template <class Op>
bool asfun(Op f,
- Op::first_argument_type a, // { dg-error "not a type" "" { target c++17_down } }
- Op::second_argument_type b) // { dg-error "not a type" "" { target c++17_down } }
+ Op::first_argument_type a, // { dg-error "not a type" }
+ Op::second_argument_type b) // { dg-error "not a type" }
{
return Op(a, b);
}
@@ -12,11 +12,11 @@ struct A
};
template <typename T>
-void func(A<T>::B* ) // { dg-error "variable|template|expression" "" { target c++17_down } }
+void func(A<T>::B* ) // { dg-error "variable|template|expression" }
{
}
int main()
{
- func<void>(0); // { dg-error "not declared|expression|;" "" { target c++17_down } }
+ func<void>(0); // { dg-error "not declared|expression|;" }
}
@@ -25,7 +25,7 @@ template <class T> struct B
// PR c++/40738
template <class T>
-void g(const A<T>::type &t); // { dg-error "typename" "" { target c++17_down } }
+void g(const A<T>::type &t); // { dg-error "typename" }
// PR c++/18451
template <class T> A<T>::B A<T>::b; // { dg-error "typename" "" { target c++17_down } }
@@ -1,5 +1,5 @@
// PR c++/33209
-template<typename T> void foo(int, T::x); // { dg-error "T::x" "" { target c++17_down } }
+template<typename T> void foo(int, T::x); // { dg-error "T::x" }
-template<template<typename> class T> void foo2(int, T<int>::x); // { dg-error "T<int>::x" "" { target c++17_down } }
+template<template<typename> class T> void foo2(int, T<int>::x); // { dg-error "T<int>::x" }