OSDN Git Service

* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash23.C
1 // Build don't link:
2
3 template <class A, class B> void foo();
4 template <class C> class bar {
5 public:
6   int i;
7   template <class B> friend void foo<C,B>(); // ERROR - template-id
8 };
9 template <class A, class B> void foo() {
10   bar<A> baz; baz.i = 1;
11   bar<int> buz; buz.i = 1;
12 }
13 int main() {
14   foo<void,void>();
15   foo<int,void>();
16 }