[Bug c++/14891] Problems with the initialization of static members of template classes

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Apr 8 16:42:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-08 16:42 -------
Invalid, you should do the following instead (it works on 3.3 also):
template<> int Z::B::val = 666; // ERROR on GCC 3.4

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14891



More information about the Gcc-bugs mailing list