[Bug c++/16897] a rethrow outside of a catch isn't flagged
joerg dot richter at pdv-fs dot de
gcc-bugzilla@gcc.gnu.org
Fri Aug 6 13:36:00 GMT 2004
------- Additional Comments From joerg dot richter at pdv-fs dot de 2004-08-06 13:35 -------
I think in the general case GCC can't know if the throw is inside a catch or
not.
void func_a()
{
throw;
}
void func_b()
{
try
{
throw 5;
}
catch( ... )
{
func_a();
}
}
Both functions can be in different translation units.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16897
More information about the Gcc-bugs
mailing list