URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [crash23.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
template <class A, class B> void foo();
template <class C> class bar {
public:
int i;
template <class B> friend void foo<C,B>(); // { dg-error "" } template-id
};
template <class A, class B> void foo() {
bar<A> baz; baz.i = 1;
bar<int> buz; buz.i = 1;
}
int main() {
foo<void,void>();
foo<int,void>();
}
Go to most recent revision | Compare with Previous | Blame | View Log