------- Comment #2 from reichelt at gcc dot gnu dot org  2008-12-30 01:18 
-------
To make things short: The bug is a duplicate of PR24791.

> This code (for better or worse) appeared to have built with 4.0.1. By adding
>the "class" stuff in the template specialization the static member was actually
>instantiated.

The "class stuff" is invalid. As mentioned in PR24791, GCC 4.0.0 -4.0.2 did not
crash on the code. All other releases before GCC 4.3.0 did.

> With just <> no instantiation occurred.

Because this is just a declaration and not a definition for the static member.
You need to add an initializer to make it a definition.
Then this should work as expected.


*** This bug has been marked as a duplicate of 24791 ***


-- 

reichelt at gcc dot gnu dot org changed:

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


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

Reply via email to