The following code sample does not compile, and it should. I get the error: gpp_bug_1.cpp: In constructor `B<X>::B()': gpp_bug_1.cpp:10: error: expected `;' before "x" G++ version: g++ (GCC) 4.4.0 20080729 (experimental) template<class X> class A{ public: typedef X type_t; }; template<class X> class B: A<X>{ public: using typename A<X>::type_t; B(){type_t x;} }; int main_(int argc, char *argv[]){ return 1; }
*** This bug has been marked as a duplicate of 14258 ***