This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22095] static template class member definition doesn't compile
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2005 20:00:56 -0000
- Subject: [Bug c++/22095] static template class member definition doesn't compile
- References: <20050616195531.22095.zappa@yandex-team.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2005-06-16 20:00 -------
The typedef you use is still a specialization of a template, so you
have to write
template <> intsample::keytype * intsample::keyptr = 0;
With this, it works.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22095