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 regression/26355] defining static members of specialized template classes doesn't work



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-02-19 16:38 -------
You need to add an initializer to make

template <> int Data<V1>::Value;

a definition.  Otherwise it's just an explicit specialization decl.  Or
if you do not want to specialize for V1, use

template <V v> int Data<v>::Value;


-- 


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


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