This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: static data member problem
- To: oliva at dcc dot unicamp dot br (Alexandre Oliva), egcs-bugs at cygnus dot com
- Subject: Re: static data member problem
- From: Jason Merrill <jason at cygnus dot com>
- Date: 21 Sep 1998 20:27:21 -0700
- References: <199809130419.EAA52788@out5.ibm.net> <oremtfr6dx.fsf.cygnus.egcs.bugs@tiete.dcc.unicamp.br>
>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:
> Mark E <snowball3@usa.net> writes:
>> The program below generates an "undefined reference to
>> container<char>::null_str_c" when STATIC is defined with egcs
>> 1.1 for DJGPP. It seems perfectly legal to me, is the error correct
>> or have I found a bug?
> You have found a bug. I can reproduce it on IRIX 5.2 and SunOS 4.1.3,
> but not on other Unix platforms I've got access to. 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...
Jason