[Bug c++/14761] Fails to link when static member variable of the class template is defined with the default value
ikm at pisem dot net
gcc-bugzilla@gcc.gnu.org
Sun Mar 28 18:00:00 GMT 2004
------- Additional Comments From ikm at pisem dot net 2004-03-28 18:00 -------
It seems the compiler's behaviour is correct: ISO/IEC 14882 (14.7.3.15) says
that an explicit specialization of a static data member of a template is a
definition only when it includes an initializer. There is no syntax to define it
with default value.
So this was my misunderstanding, sorry to bug you people.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Version|3.3.3 |unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14761
More information about the Gcc-bugs
mailing list