Bug 17446

Summary: too few template-parameter-lists
Product: gcc Reporter: carlson14
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Severity: critical CC: gcc-bugs
Priority: P1    
Version: 3.4.1   
Target Milestone: ---   
Host: alphaev67-dec-osf5.1 Target: alphaev67-dec-osf5.1
Build: alphaev67-dec-osf5.1 Known to work:
Known to fail: Last reconfirmed:

Description carlson14 2004-09-13 00:40:26 UTC
The following code give this error (compiles fine in 3.3.3):
I don't know if I need to fix my code, or if it is a bug
in 3.4.1.

test.cpp:10: error: too few template-parameter-lists
test.cpp:10: error: expected `,' or `;' before '=' token

template <class T> class MyType {
 static char *name;
class Sample {
MyType<Sample> list;
char *MyType<Sample>::name = "Hello\n";
int main(int argc, char **argv) {
Comment 1 Andrew Pinski 2004-09-13 01:03:16 UTC

*** This bug has been marked as a duplicate of 17445 ***