This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Static initialisation question...
- To: Mike Harrold <mharrold at cas dot org>
- Subject: Re: Static initialisation question...
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 25 Apr 2001 15:52:25 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200104250254.WAA27753@mah21awu.cas.org>
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