URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [trailing4.C] - Rev 478
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/38597
// { dg-options "-std=c++0x" }
template<class T, class U>
auto f(T,U) -> decltype(T() + U())
{ return T() + U(); }
template<class T> void g(T){}
int main() { g(f); } // { dg-error "no matching function" }
Go to most recent revision | Compare with Previous | Blame | View Log