2 // { dg-do compile { target c++11 } }
4 template<class T, class U>
5 auto f(T,U) -> decltype(T() + U())
8 template<class T> void g(T){} // { dg-message "note" }
10 int main() { g(f); } // { dg-error "no matching function" }
11 // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } .-1 }