| 1 |
// PR c++/11116 |
| 2 |
|
| 3 |
template <typename T> struct S {}; |
| 4 |
|
| 5 |
void f() { |
| 6 |
throw S (); // { dg-error "12:class template argument deduction failed|no match" "" { target c++17 } } |
| 7 |
// { dg-error "11:missing template arguments" "" { target c++14_down } .-1 } |
| 8 |
} |