Use of atexit for destructors on Solaris 7.

Phil Edwards pedwards@jaj.com
Tue Mar 21 07:33:00 GMT 2000


Charles Galambos <c.galambos@eim.surrey.ac.uk>:
>
> I've just encountered a problem with the implementation
> of destructors on Solaris 7.    It seems the use the
> 'atexit' function, this function registers at most 34
> functions under solaris 7.

Not a bug.  The ISO C++ Standard only requires a minimum of 32 functions;
any implementation that supports more is just being friendly.  What's more,
the atexit(3c) man page on Solaris 7 documents that "at most 32 functions
may be registered," so if you're actually seeing 34 functions (I didn't
look at your code), then you're actually getting more than what's required.


Luck++;
Phil



More information about the Gcc-bugs mailing list