FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / friend38.C
bloba7363013f3b698a437df48af003043e7c451c72f
1 // Build don't link:
3 // Overly simplified from testcase by "B. K. Oxley" <binkley@bigfoot.com>
5 template<class P, class Q> struct foo {
6   typedef P parent_type;
7   friend parent_type; // ERROR - template parameters cannot be friends
8   friend Q;           // ERROR - template parameters cannot be friends
9 };