This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17446] New: too few template-parameter-lists
- From: "carlson14 at llnl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 00:40:27 -0000
- Subject: [Bug c++/17446] New: too few template-parameter-lists
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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