URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [defaulted10.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/40381
// { dg-options "-std=gnu++0x" }
struct A
{
template<typename T> void foo(T) = delete; // { dg-error "previously|declared" }
};
template<typename T> void A::foo(T) {} // { dg-error "redefinition" }
void bar()
{
A().foo(0); // { dg-error "use" }
}
Go to most recent revision | Compare with Previous | Blame | View Log