version: 2.91.57 system: cygwin and linux command line: g++ error.cpp program: //////BEGIN error.cpp template<class T> struct A{ template<class T2> struct B{}; }; int main(){ A<char>::template B<int> a; } ////////END error.cpp compiler message: Internal compiler error