[Bug c++/17037] static map in template crash on runtime when inserting
florent dot gallet at orange dot fr
gcc-bugzilla@gcc.gnu.org
Sun Aug 15 21:41:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list