From: jason Date: Fri, 1 Jun 2018 20:49:27 +0000 (+0000) Subject: * pt.c (instantiate_decl): Any defaulted function is defined. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9261bbbee3c2aa7be2cb37d358fa7c53dd4b3271;p=thirdparty%2Fgcc.git * pt.c (instantiate_decl): Any defaulted function is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261084 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 434fde6ae593..220b80b4098a 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 d0fc9ee51a50..b97cd3013be7 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