URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [sfinae24.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/49058
// This error is not subject to SFINAE because it doesn't happen in the
// deduction context.
// { dg-options -std=c++0x }
// { dg-prune-output "note" }
template<typename T> T val();
struct F1
{
void operator()();
};
template<typename F>
struct Bind
{
template<typename R
= decltype( val<F>()( ) )>
R f();
template<typename R
= decltype( val<const F>()( ) )>
R f() const; // { dg-error "no match" }
};
int main()
{
Bind<F1> b;
}
Go to most recent revision | Compare with Previous | Blame | View Log