[Bug c++/11585] static template member definition fails
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sat Jul 19 00:11:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11585
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-19 00:11 -------
I found a workaround (if the code given in the bug is not valid, then this is the right thing to do):
template<typename T> class A { static int n; };
template<> int A<int>::n = 0;
More information about the Gcc-bugs
mailing list