[Bug c++/44548] Link error when defining templated static const variable
redi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 16 12:12:00 GMT 2010
------- Comment #5 from redi at gcc dot gnu dot org 2010-06-16 12:11 -------
(In reply to comment #4)
> So what the above code actually means? Is it valid?
Yes, it's valid. It declares an explicit specialization, which inhibits the
implicit instantiation of the default specialization.
In order for the code to be valid a definition must be provided. It isn't, so
you get a link error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44548
More information about the Gcc-bugs
mailing list