// PR c++/38597 // { dg-options "-std=c++0x" } template auto f(T,U) -> decltype(T() + U()) { return T() + U(); } template void g(T){} int main() { g(f); } // { dg-error "no matching function" }