Initialization of a static member of a template class fails

John (Eljay) Love-Jensen eljay@adobe.com
Fri Jul 27 11:54:00 GMT 2007


Hi Daniel,

>AFAIK, all this is solved implicitly by means of vague linking (aka COMDAT/linkonce support).

As I understand it, vague linking does not solve the problem of multiple copies of inlined code, when the inline code has (what should be) a shared static data member.

But I may be mistaken.

Time to test the theory...

(And it could be interacting poorly with having default visibility being set to "hidden" in my project.)

Sincerely,
--Eljay



More information about the Gcc-help mailing list