This is the mail archive of the gcc-help@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]

RE: Initialization of a static member of a template class fails


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


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