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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2004 17:29:12 -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 pinskia at gcc dot gnu dot org 2004-03-28 17:29 -------
ICC gives a warning:
pr14761.cc(40): warning #533: member "StaticHolder<T>::staticMember [with T=int]" cannot be
instantiated -- it has been explicitly specialized
template int StaticHolder< int > :: staticMember;
^
pr14761.cc(40): warning #533: member "StaticHolder<T>::staticMember [with T=int]" cannot be
instantiated -- it has been explicitly specialized
template int StaticHolder< int > :: staticMember;
^
--
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14761