blob: 6cbbb2b099371c1be08423da7d6fb774913e8e18 [file] [log] [blame]
// PR c++/53403
template <typename T>
class Foo
{
typedef void type;
template <typename U> friend void f();
public:
Foo() {}
};
template class Foo<void>;
template <typename T>
void f()
{
typedef Foo<void>::type type;
}
int main()
{
f<void>();
}