egcs 10-31 and UnixWare

Joe Buck jbuck@synopsys.com
Sun Nov 9 18:35:00 GMT 1997


> Anyone know what's supposed to happen if, while running global dtors
> a dtor itself calls exit, which starts the process of runing global
> dtors again....

I've read the relevant part of CD2 [lib.support.start.term] and that
isn't made clear: the description omits describing what happens on
a recursive call.  The other case where this kind of recursion occurs
(a destructor that is called as part of exception processing throws
an exception), the program is aborted by calling terminate().

Has the committee clarified this?  I can think of two logical ways
to proceed: call terminate(), or ignore the second exit() call.





More information about the Gcc mailing list