This is the mail archive of the gcc@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: p2736.C Is dtor order guaranteed?


Robert Lipe <robertl@dgii.com> writes:

> This target calls both constructors and both destructors.  It, however,
> doesn't do them in the order that this testcase likes.

The requirement is that destructors must be called in reverse order of
construction.  Anyway, the testcase g++.other/init5.C does a better
job of testing this feature, so p2736.C may even be dropped.  Does
init5.C work on the port you're working on?

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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