blob: f5c4b2af329474100f00b584f59c7ddd031dc1d3 [file] [log] [blame]
// Origin: PR c++/42915
// { dg-do compile }
template <typename T>
class A
{
template <typename U>
class B
{
B foo();
};
};
template <typename T> template <typename U>
A<T>::template B<U> A<T>::B<U>::foo() {}