Exception Specifications & code quality
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Sat Sep 5 19:08:00 GMT 1998
> The code I'm talking about is between LL3 and LL16. I must say, I'm a
> little surprised about the exception unwind blocks LLEHB14, LLEHB7 and
> LLEHB10 around this, surely the routines __cp_eh_info, __tfc,
> __check_eh_spec cannot throw?
Good question. __cp_eh_info cannot throw, as far as I can tell. __tfc
calls 'new builtin_type_info', and can throw if it runs out of memory.
__check_eh_spec calls unexpected if the spec doesn't match, which can
throw the some of the excepted exceptions.
Martin
More information about the Gcc
mailing list