when trying to compile code below under g++-3.4.4: <code> #include <iostream> using namespace std; template <typename _T> class Singleton { public: static _T* ptr; }; class Voxelizer : public Singleton<Voxelizer> { }; Voxelizer* Singleton<Voxelizer>::ptr = 0; int main() { Voxelizer v; cout << v.ptr << endl; return 0; } </code> compiler gives error: "error: too few template-parameter-lists", when processing static template member variable initialization ("Voxelizer* Singleton<Voxelizer>::ptr = 0;") Reproducible: Always Steps to Reproduce: Actual Results: compile time error: "error: too few template-parameter-lists" Expected Results: should compile cleanly - tested with previous versions of gcc (3.3.6)
(In reply to comment #0) 1/ NOT a bugzilla product bug. 2/ > Expected Results: > should compile cleanly - tested with previous versions of gcc (3.3.6) Those two gcc version are not exactly compatible. 3/ Bugzilla is for bugs, not for providing assistance with coding your own apps. Search help in forums.gentoo.org, on IRC or some other appropriate place.
Not a bug.
(In reply to comment #2) > Not a bug. yeah, nevermind http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15006