I have example of code with template with template partial specialization. And where clang while parsing ,return result invalid declaration.
template < class T> class TYPE_A
{
};
template < class T, class U> class TYPE_B
{
};
template < class T, class U = TYPE_A<T> > class TYPE_B;
typedef TYPE_B<double> B_Test;
I have result ast dump:
TypedefDecl 0x2024d557af0 <D:\Projects\Reps\NET_Desktop\Rel\Kernel\include\OdArrayPreDef.h:60:1, col:27> col:27 invalid somethingTest 'int'
`-BuiltinType 0x2024caff080 'int'
Why clang talking (last line in dump) is invalid?