2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend13.C
blob6eebf6b951f4942009c04019531133c8d885b12d
1 // { dg-do compile }
3 // Perform access checking to parameter and return type of 
4 // function template correctly when only specialization is friend.
6 template <class T>
7 typename T::Inner
8 foo () {
9   return typename T::Inner();
12 class Outer {
13   private:
14     struct Inner {};
16     friend Outer::Inner foo<Outer> ();
19 void f() {
20   foo<Outer>();