This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14761] Fails to link when static member variable of the class template is defined with the default value
- From: "ikm at pisem dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2004 18:00:41 -0000
- Subject: [Bug c++/14761] Fails to link when static member variable of the class template is defined with the default value
- References: <20040328171545.14761.ikm@pisem.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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