[Bug c++/20350] [4.0/4.1 Regression] extern template and struct initializer and specification for a static variable

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 10:07:00 GMT 2005


------- Additional Comments From nathan at gcc dot gnu dot org  2005-06-01 10:07 -------
Even smaller test case

template <int i> struct Mutex
{
  static int mutex;
};

template <int i>
int Mutex<i>::mutex = {1};

template <> int Mutex<0>::mutex;
template <> int Mutex<0>::mutex = 0;

void g()
{
  Mutex<0>::mutex = 0;
}



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-03-06 23:49:41         |2005-06-01 10:07:38
               date|                            |


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



More information about the Gcc-bugs mailing list