1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
template <typename T> class SomeClass { public: struct data {}; }; template <typename T> void func() { SomeClass<int>::data d1; SomeClass<T>::data d2; } int main() { }
1 2 3
In function 'void func()': Line 12: error: expected `;' before 'd2' compilation terminated due to -Wfatal-errors.