aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/module.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/module.cc')
-rw-r--r--gcc/cp/module.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index c5eff21..cb1929b 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -5411,6 +5411,9 @@ trees_out::core_bools (tree t)
case VAR_DECL:
if (TREE_PUBLIC (t)
+ && !(TREE_STATIC (t)
+ && DECL_FUNCTION_SCOPE_P (t)
+ && DECL_DECLARED_INLINE_P (DECL_CONTEXT (t)))
&& !DECL_VAR_DECLARED_INLINE_P (t))
is_external = true;
break;