| 1 |
// PR c++/89876 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-prune-output "sorry" } |
| 4 |
|
| 5 |
template <typename T> |
| 6 |
T f (T, char*); |
| 7 |
|
| 8 |
template <typename T> |
| 9 |
decltype (f (T (), "")) g (T) { return ""; } // { dg-error "invalid conversion" } |
| 10 |
|
| 11 |
void h () { g (0); } |