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]

Re: Static initialisation question...


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


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