This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]