2025-07-28 17:43 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003729Spring engineGeneralpublic2013-05-06 00:32
Reporterabma 
Assigned TojK 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0003729: clang compile error with CR_BIND_TEMPLATE
Descriptionseems to happen for most/all CR_BIND_TEMPLATE

/home/buildbot/slave/full-clang/build/rts/Sim/Projectiles/ProjectileHandler.cpp:43:1: error: explicit specialization of 'binder' after instantiation
CR_BIND_TEMPLATE(ProjectileContainer, )
^
/home/buildbot/slave/full-clang/build/rts/System/creg/creg.h:448:37: note: expanded from macro 'CR_BIND_TEMPLATE'
        template<> creg::ClassBinder TCls::binder(#TCls, 0, 0, &TCls::memberRegistrator, sizeof(TCls), alignof(TCls), TCls::hasVTable, TCls::_ConstructInstance, TCls::_DestructInstance);
                                           ^
/home/buildbot/slave/full-clang/build/rts/Sim/Projectiles/ProjectileHandler.cpp:43:1: note: implicit instantiation first required here
CR_BIND_TEMPLATE(ProjectileContainer, )
^
/home/buildbot/slave/full-clang/build/rts/System/creg/creg.h:445:58: note: expanded from macro 'CR_BIND_TEMPLATE'
        template<> creg::Class* TCls::GetClass() const { return binder.class_; } \
                                                                ^
/home/buildbot/slave/full-clang/build/rts/Sim/Projectiles/ProjectileHandler.cpp:48:1: error: explicit specialization of 'binder' after instantiation
CR_BIND_TEMPLATE(GroundFlashContainer, )
^
/home/buildbot/slave/full-clang/build/rts/System/creg/creg.h:448:37: note: expanded from macro 'CR_BIND_TEMPLATE'
        template<> creg::ClassBinder TCls::binder(#TCls, 0, 0, &TCls::memberRegistrator, sizeof(TCls), alignof(TCls), TCls::hasVTable, TCls::_ConstructInstance, TCls::_DestructInstance);
                                           ^
/home/buildbot/slave/full-clang/build/rts/Sim/Projectiles/ProjectileHandler.cpp:48:1: note: implicit instantiation first required here
CR_BIND_TEMPLATE(GroundFlashContainer, )
^
/home/buildbot/slave/full-clang/build/rts/System/creg/creg.h:445:58: note: expanded from macro 'CR_BIND_TEMPLATE'
        template<> creg::Class* TCls::GetClass() const { return binder.class_; } \
                                                                ^
Additional Informationan other case:

rts/System/SafeVector.cpp:10:1: error: explicit specialization of 'binder' after instantiation
CR_BIND_TEMPLATE(safe_vector<float>, );
^
rts/System/creg/creg.h:448:37: note: expanded from macro 'CR_BIND_TEMPLATE'
        template<> creg::ClassBinder TCls::binder(#TCls, 0, 0, &TCls::memberRegistrator, sizeof(TCls), alignof(TCls), TCls::hasVTable, TCls::_ConstructInstance, TCls::_DestructInstance);
                                           ^
rts/System/SafeVector.cpp:10:1: note: implicit instantiation first required here
CR_BIND_TEMPLATE(safe_vector<float>, );
^
rts/System/creg/creg.h:445:58: note: expanded from macro 'CR_BIND_TEMPLATE'
        template<> creg::Class* TCls::GetClass() const { return binder.class_; } \
                                                                ^
1 error generated.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2013-04-21 12:15 abma New Issue
2013-05-06 00:32 jK Status new => resolved
2013-05-06 00:32 jK Resolution open => fixed
2013-05-06 00:32 jK Assigned To => jK
+Issue History