prog.cpp: In member function ‘void A<T>::g()’:
prog.cpp:11:25: error: non-template ‘iterator’ used as template
typename T::iterator<0> x;
^
prog.cpp:11:25: note: use ‘T::template iterator’ to indicate that it is a template
prog.cpp:11:25: error: declaration does not declare anything [-fpermissive]
prog.cpp: In instantiation of ‘void A<T>::g() [with T = T4]’:
prog.cpp:38:20: required from here
prog.cpp:9:13: warning: unused variable ‘x’ [-Wunused-variable]
int x = 5;
^