[Bug c++/17446] New: too few template-parameter-lists
carlson14 at llnl dot gov
gcc-bugzilla@gcc.gnu.org
Mon Sep 13 00:40:00 GMT 2004
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 {
public:
static char *name;
};
class Sample {
};
MyType<Sample> list;
char *MyType<Sample>::name = "Hello\n";
int main(int argc, char **argv) {
}
--
Summary: too few template-parameter-lists
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlson14 at llnl dot gov
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev67-dec-osf5.1
GCC host triplet: alphaev67-dec-osf5.1
GCC target triplet: alphaev67-dec-osf5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17446
More information about the Gcc-bugs
mailing list