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: gcc-3.0 bug - destructor not called when throwing an exception


On Sun, Jul 29, 2001 at 12:16:20AM -0300, Alexandre Oliva wrote:
> On Jul 27, 2001, Phil Edwards <pedwards@disaster.jaj.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...?


Phil

-- 
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


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