blob: 1769a3ce026d8407ea451b7a8daf9b8fc45c60b6 [file] [log] [blame]
// PR c++/59930
namespace NS {
template<typename T> class Holder
{
private:
void func();
template<typename> friend class User;
};
template class Holder<long>;
template<typename T> class User
{
public:
void method() const
{
Holder<T> x;
x.func();
}
};
} // namespace
void Foo()
{
NS::User<long> decl;
decl.method();
}