URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash97.C] - Rev 783
Compare with Previous | Blame | View Log
// PR c++/34272
template<typename> struct A {};
template<typename> struct A<int> // { dg-error "not used|template\\-parameter" }
{
template<int> void foo();
};
void bar()
{
A<int> a; // { dg-error "incomplete type" }
a.foo<0>(); // { dg-error "expected" }
}