Trying to use a template defined in a class that is being passed as a template parameter itself. The typename specifier is obviously incorrect but i just get other errors if i try to use template there.
struct Tee
{
template<typename T = int> class Bar { };
};
template<typename T>
struct Foo
{
typename T::Bar<> f; // *error non-template used as template
};
int main() {
Foo<Tee> foo;
return 0;
}