| Summary: | gcc-3.4.4-r1 (recent gentoo stable), compiler error: "error: too few template-parameter-lists" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Maciej Mrozowski <reavertm> |
| Component: | [OLD] GCC Porting | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
(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 |
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)