Static initialisation question...
Alexandre Oliva
aoliva@redhat.com
Wed Apr 25 11:51:00 GMT 2001
On Apr 24, 2001, Mike Harrold <mharrold@cas.org> wrote:
>>
>> On Apr 24, 2001, Mike Harrold <mharrold@cas.org> wrote:
>>
>> > My qeustion is if it is safe to assume that static member objects of
>> > a base class are always initialised before statis member objects of
>> > a derived class?
>>
>> Is this a question about C++ the language (in which this is the wrong
>> forum) or about the g++ implementation on a certain platform (in which
>> case I don't know the answer anyway)?
> It's a question about the g++ implementation.
Still, you failed to mention which platform your question applies to.
The answer may well change from platform to platform, since it's quite
dependent on properties of the run-time loader. Even more so if you
thrown shared libraries and dlopened modules into the picture.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc-help
mailing list