aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r--gcc/cp/except.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 595d3d6..fd99a93 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -1121,6 +1121,7 @@ nothrow_libfn_p (fn)
if (TREE_PUBLIC (fn)
&& DECL_EXTERNAL (fn)
+ && DECL_NAMESPACE_SCOPE_P (fn)
&& DECL_EXTERN_C_P (fn))
/* OK */;
else