This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Initialization of a static member of a template class fails
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: "Daniel Lohmann" <daniel dot lohmann at informatik dot uni-erlangen dot de>, <gcc-help at gcc dot gnu dot org>
- Date: Fri, 27 Jul 2007 04:54:34 -0700
- Subject: RE: Initialization of a static member of a template class fails
- References: <46A9928F.50305@informatik.uni-erlangen.de>
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