Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115198 - gcc-3.4.4-r1 (recent gentoo stable), compiler error: "error: too few template-parameter-lists"
Summary: gcc-3.4.4-r1 (recent gentoo stable), compiler error: "error: too few template...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-11 07:59 UTC by Maciej Mrozowski
Modified: 2005-12-11 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Mrozowski gentoo-dev 2005-12-11 07:59:57 UTC
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)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-11 08:25:00 UTC
(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.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-12-11 08:25:35 UTC
Not a bug.
Comment 3 Maciej Mrozowski gentoo-dev 2005-12-11 12:28:10 UTC
(In reply to comment #2)  
> Not a bug.  
  
yeah, nevermind 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15006