[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 17:46:00 GMT 2004


------- Additional Comments From ikm at pisem dot net  2004-03-28 17:46 -------
(In reply to comment #1)
> ICC gives a warning:
> pr14761.cc(40): warning #533: member "StaticHolder<T>::staticMember [with
T=int]" cannot be 
> instantiated -- it has been explicitly specialized

Just comment that line, it doesn't seem to be of any need.

[Btw, maybe G++ 3.x should introduce the same warning, 2.95 has it. I am not
sure about what ISO/IEC suggests about it.]

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14761



More information about the Gcc-bugs mailing list