static data member problem
Alexandre Oliva
oliva@dcc.unicamp.br
Tue Sep 22 16:36:00 GMT 1998
Jason Merrill <jason@cygnus.com> writes:
>>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:
>> I believe it is the same problem that affects platforms that lack
>> ELF weak-symbols: static data members of template classes have to
>> be explicitly instantiated on them :-(
> Yes, but it's not a bug. Them's the facts of life on such targets, unless
> you have a clever idea...
I'm not object-file expert (I'm not even a beginner :-), but, since we
have collect2 on all platforms (don't we?), couldn't we arrange that
g++ writes some notes in the object files that collect2 can use to
instantiate the missing symbols at link time?
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list