From 9760467ea54b39d18a6e0e1e245e5154f24b8ca6 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 1 Jun 2018 16:49:27 -0400 Subject: [PATCH] * pt.c (instantiate_decl): Any defaulted function is defined. From-SVN: r261084 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/pt.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 434fde6ae59..220b80b4098 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2018-05-31 Jason Merrill + + * pt.c (instantiate_decl): Any defaulted function is defined. + 2018-05-30 Jonathan Wakely PR c++/77777 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index d0fc9ee51a5..b97cd3013be 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -23748,7 +23748,7 @@ instantiate_decl (tree d, bool defer_ok, bool expl_inst_class_mem_p) deleted_p = DECL_DELETED_FN (code_pattern); pattern_defined = ((DECL_SAVED_TREE (code_pattern) != NULL_TREE && DECL_INITIAL (code_pattern) != error_mark_node) - || DECL_DEFAULTED_OUTSIDE_CLASS_P (code_pattern) + || DECL_DEFAULTED_FN (code_pattern) || deleted_p); } else -- 2.30.2