This is the mail archive of the gcc-bugs@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: Use of atexit for destructors on Solaris 7.



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


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