// Copyright (C) 2003 Free Software Foundation // Contributed by Kriang Lerdsuwanakij // { dg-do compile } // Template instantiate during deferred access check template struct C { typedef int Y; }; template void f(typename T::X) { } class A { typedef int X; template friend void f(typename T::X); }; C<&f >::Y g(int);