This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
p2736.C Is dtor order guaranteed?
- To: egcs at cygnus dot com
- Subject: p2736.C Is dtor order guaranteed?
- From: Robert Lipe <robertl at dgii dot com>
- Date: Sat, 18 Jul 1998 22:33:24 -0500
I've been looking at the failure of g++.mike/p2736.C on OpenServer in
COFF mode.
This target calls both constructors and both destructors. It, however,
doesn't do them in the order that this testcase likes. Does the
language spec really guarantee the order of destructors as they're
called? I had it in my mind that it did not.
The comments at the top about it being a "poor test case" make
me wonder.
RJL