Description of problem: When we run g++ for complie, "error: too few template-parameter-lists" was shown. ( our test program is as follows -- test001.cpp ) ----------------------------------------- <test001.cpp> #include <iostream> #include <cstdio> using namespace std; template<class _T> class foo { static _T m_instance; public: typedef _T member_type; }; foo<int>::member_type foo<int>::m_instance; int main() { return 0; } ----------------------------------------- Version-Release number of selected component (if applicable): gcc-c++-3.4.1-10 How reproducible: Always Steps to Reproduce: 1. # g++ test001.cpp Actual results: error: too few template-parameter-lists Expected results: (1) We run g++ properly. (2) When is corrected g++ released ? (if g++ is bug) Additional info: (1) When we run g++, "error: too few template-parameter-lists" was not shown. ( g++ version: 3.2.x) (2) The same problem is indicated. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17446
*** This bug has been marked as a duplicate of 143383 ***