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++/32534] gcc fails to initialize template's static data members before their use in some cases



------- 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


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