1 // { dg-do compile { target c++11 } }
2 // { dg-prune-output "note" }
4 template<int M, int N> struct pair
10 template<int... M> struct S
12 template<int... N> static int foo() throw (pair <M, N>...) // { dg-error "mismatched" "" { target { ! c++17 } } }
13 { // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
14 return 1; // { dg-warning "deprecated" "" { target { ! c++17 } } .-2 }
20 return S<0, 1, 2>::foo<0, 1, 3> ();
25 return S<0, 1, 2>::foo<0, 1> (); // { dg-error "no matching" "" { target { ! c++17 } } }