gcc-3.0 bug - destructor not called when throwing an exception
Sun Jul 29 15:54:00 GMT 2001
On Sun, Jul 29, 2001 at 12:16:20AM -0300, Alexandre Oliva wrote:
> On Jul 27, 2001, Phil Edwards <email@example.com> wrote:
> > The ctor for 'a' finished before the try block was entered.
> Not before the try block whose catch caught the exception, which is
> the one that matters.
Mmmph, good point. Dunno what I was thinking.
> Unfortunately, this appears to be the case in GCC 3.0.
> This would qualify as a high-priority bug, since it's a regression
> from 2.95.2. It must definitely be added to the Gnats database.
I'm confused now -- this seems to be a pretty obvious bug. If true,
it's amazing that this made it into 3.0...?
Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
- anonymous Egyptian scribe, c.1700 BC
More information about the Gcc-bugs