Comments
Patch
commit 631465c6d70a602d274e760af7912ad384f67750
Author: Jason Merrill <jason@redhat.com>
Date: Tue Aug 2 09:06:05 2011 -0400
* call.c (build_call_a): Also check at_function_scope_p.
@@ -352,7 +352,7 @@ build_call_a (tree function, int n, tree *argarray)
nothrow = ((decl && TREE_NOTHROW (decl))
|| TYPE_NOTHROW_P (TREE_TYPE (TREE_TYPE (function))));
- if (!nothrow && cfun && cp_function_chain)
+ if (!nothrow && at_function_scope_p () && cfun && cp_function_chain)
cp_function_chain->can_throw = 1;
if (decl && TREE_THIS_VOLATILE (decl) && cfun && cp_function_chain)