This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15244] definition of nontrivial static members of template class using g++ 3.4.0
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2004 17:01:03 -0000
- Subject: [Bug c++/15244] definition of nontrivial static members of template class using g++ 3.4.0
- References: <20040501164701.15244.militzer@gl.ciw.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-01 17:01 -------
Use the following instead:
template<int i> double ShortVector < i > :: volume;
template double ShortVector < 3 > :: volume;
The first statement is the declaration, the second is the explicit instantation.
Unlike yours statment which is not valid C++ at all.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15244