[Bug c++/15244] definition of nontrivial static members of template class using g++ 3.4.0

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 1 17:01:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list