This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: p2736.C Is dtor order guaranteed?
- To: Robert Lipe <robertl at dgii dot com>
- Subject: Re: p2736.C Is dtor order guaranteed?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 19 Jul 1998 18:18:01 -0300
- Cc: egcs at cygnus dot com
- References: <19980718223324.A18168@dgii.com>
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