blob: 9ee28a2a08d3241a6950e5e42d0af9bd4527558c [file] [log] [blame]
template <int I> struct B { };
template <class T>
B<T::I> f();
class A
{
static const int I = 42;
template <class T> friend B<T::I> f();
};
int main()
{
f<A>();
}