This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17037] static map in template crash on runtime when inserting
- From: "florent dot gallet at orange dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2004 21:41:29 -0000
- Subject: [Bug c++/17037] static map in template crash on runtime when inserting
- References: <20040815190201.17037.florent.gallet@orange.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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