// RUN: %clang_cc1 -fsyntax-only %s
template<typename T>structfoo{structbar;
bar fn(){// Should not get errors about bar being incomplete here.
bar b =bar(1,2);return b;}};template<typename T>structfoo<T>::bar{bar(int,int);};voidfn(){foo<int>().fn();}