From: Jason Merrill Date: Fri, 1 Jun 2018 20:49:27 +0000 (-0400) Subject: * pt.c (instantiate_decl): Any defaulted function is defined. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9760467ea54b39d18a6e0e1e245e5154f24b8ca6;p=gcc.git * pt.c (instantiate_decl): Any defaulted function is defined. From-SVN: r261084 --- 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