OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / friend23.C
1 // Build don't link:
2
3 template <class T = int> // ERROR - original definition
4 struct S
5 { // ERROR - redefinition of default arg
6   template <class U = int>
7   friend class S;
8 };
9
10 template struct S<int>; // ERROR - instantiated from here