This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17446] New: too few template-parameter-lists


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]