EH in C (was: Re: (lack of) Thread-safe exceptions on AIX(gcc-2.95.1)

Oleg Krivosheev kriol@fnal.gov
Tue Feb 1 07:40:00 GMT 2000


On Tue, 1 Feb 2000, Richard Henderson wrote:

> 
> On Tue, Feb 01, 2000 at 12:31:21AM -0700, llewelly@198.dsl.xmission.com wrote:
> > This is what catch(...) { throw;} is for. It works just like finally.
> 
> No it doesn't -- __finally *always* runs, whether an
> exception is thrown or not.
> 

well, i believe you could rethrow the exception and get the
catch(...) block always run. Just add throw; in appropriate place

OK



More information about the Gcc mailing list