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++/17037] static map in template crash on runtime when inserting


------- Additional Comments From florent dot gallet at orange dot fr  2004-08-15 21:41 -------
Sorry if my code is wrong, I was trying to convert old code, but I really 
don't see where's the prob :(

2 things :
- first: sorry for "template class f<char>;" it was in the other code (forgot 
to remove it to make this small piece of code)

- second: before I've tryed :
template f<char>::mapType f<char>::months;
or even
template class f<char>::mapType f<char>::months;
// error: explicit instantiation of `f<char>::months' but no definition 
available
and
template f<char>::mapType f<char>::months;
template <> f<char>::mapType f<char>::months;
or
template <> f<char>::mapType f<char>::months;
template f<char>::mapType f<char>::months;

but it crash the same way so I've removed it to make a smaller code

If you know how to do I'd really like to know because I'm becoming a little 
confused with the new syntax :S

And thanks to help me :)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17037


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