[Bug c++/58885] New: Template static variable linking issue!
vehbi.esref.bayraktar at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Oct 26 06:17:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58885
Bug ID: 58885
Summary: Template static variable linking issue!
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vehbi.esref.bayraktar at gmail dot com
Created attachment 31090
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31090&action=edit
One header one cpp
Sending the code as is. Compile and see the following error first:
specializing member ‘VCL::CGEnum<int, Test_Enum>::msInstances’ requires
‘template<>’ syntax
Once i prefix the line with template<> , it starts compiling about
undefined reference to `VCL::CGEnum<int, Test_Enum>::msInstances'
Initial code works perfectly fine with VS2012.
Please have a look!
More information about the Gcc-bugs
mailing list