This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32534] gcc fails to initialize template's static data members before their use in some cases
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2009 09:19:49 -0000
- Subject: [Bug c++/32534] gcc fails to initialize template's static data members before their use in some cases
- References: <bug-32534-14775@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jwakely dot gcc at gmail dot com 2009-06-15 09:19 -------
(In reply to comment #0)
> I can't use "template<> A B<int>::a = something;" form (which would help)
> because I have only empty ctor (like in the case of map).
I'm not sure what you mean but this works fine:
template<> A B<int>::a = A();
--
jwakely dot gcc at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jwakely dot gcc at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32534