stdio synching and startup code (was Re: segfaults after loading shared libstdc++)
Nathan Myers
ncm@nospam.cantrip.org
Wed Jan 10 14:34:00 GMT 2001
On Wed, Jan 10, 2001 at 01:30:57PM +0300, Artem Khodush wrote:
> So these questions still remain:
> Is it safe to close filebuf multiple times? (I think that it should)
> It it legal C++ to call the destructor for the same object multiple times?
> If it's legal, does g++ do the correct thing?
It is absolutely not legal to call the destructor for the same
object multiple times. However, given a particular compiler,
it may be possible to determine that it has no harmful effect,
for a particular set of version/build/target combinations of
that compiler.
Nathan Myers
ncm at cantrip dot org
More information about the Libstdc++
mailing list