aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-06-01 16:49:27 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-06-01 16:49:27 -0400
commit9760467ea54b39d18a6e0e1e245e5154f24b8ca6 (patch)
treec5c38702235002934f94d6dc9527cc86a26dd018
parent010ff25bdd179c8c8168388366ac17f634953dc2 (diff)
downloadgcc-9760467ea54b39d18a6e0e1e245e5154f24b8ca6.zip
gcc-9760467ea54b39d18a6e0e1e245e5154f24b8ca6.tar.gz
gcc-9760467ea54b39d18a6e0e1e245e5154f24b8ca6.tar.bz2
* pt.c (instantiate_decl): Any defaulted function is defined.
From-SVN: r261084
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 434fde6..220b80b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2018-05-31 Jason Merrill <jason@redhat.com>
+
+ * pt.c (instantiate_decl): Any defaulted function is defined.
+
2018-05-30 Jonathan Wakely <jwakely@redhat.com>
PR c++/77777
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index d0fc9ee..b97cd30 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