[Bug c++/19610] default constructor not called for static template member of template class
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 26 04:16:00 GMT 2005
------- Additional Comments From bangerth at dealii dot org 2005-01-26 04:16 -------
The declaration of a specialization is not a definition, unless it has
an explicit initializer call. The way you want to write this is
as follows:
template <> A<char> B<char>::a = A<char>();
The standard specifically says that this is the only permissible
syntax for default initialization.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19610
More information about the Gcc-bugs
mailing list