aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 38c91a0..14a6788 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -10161,7 +10161,9 @@ mark_decl_instantiated (tree result, int extern_p)
maybe_make_one_only (result);
}
- if (TREE_CODE (result) == FUNCTION_DECL)
+ if (TREE_CODE (result) == FUNCTION_DECL
+ && (DECL_ARTIFICIAL (result)
+ || (DECL_DECLARED_INLINE_P (result) && TREE_USED (result))))
defer_fn (result);
}