Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / conv5.C
blobe238f9f30b787e73c59db3fa70e796ac7ff287b4
1 // PR c++/89876
2 // { dg-do compile { target c++11 } }
3 // { dg-prune-output "sorry" }
5 template <typename T>
6 T f (T, char*);
8 template <typename T>
9 decltype (f (T (), "")) g (T) { return ""; } // { dg-error "invalid conversion" }
11 void h () { g (0); }