diff options
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 3605b67..f73deb3 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -24154,6 +24154,11 @@ mark_decl_instantiated (tree result, int extern_p) if (TREE_ASM_WRITTEN (result)) return; + /* consteval functions are never emitted. */ + if (TREE_CODE (result) == FUNCTION_DECL + && DECL_IMMEDIATE_FUNCTION_P (result)) + return; + /* For anonymous namespace we don't need to do anything. */ if (decl_anon_ns_mem_p (result)) { |