OSDN Git Service

PR c++/51459
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / trailing4.C
1 // PR c++/38597
2 // { dg-options "-std=c++0x" }
3
4 template<class T, class U>
5 auto f(T,U) -> decltype(T() + U())
6 { return T() + U(); }
7
8 template<class T> void g(T){}   // { dg-message "note" }
9
10 int main() { g(f); }            // { dg-error "no matching function" }
11 // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 10 }
12