[Bug c++/32534] gcc fails to initialize template's static data members before their use in some cases
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 15 09:20:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list