]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* pt.c (instantiate_decl): Any defaulted function is defined.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jun 2018 20:49:27 +0000 (20:49 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jun 2018 20:49:27 +0000 (20:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261084 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c

index 434fde6ae593ae82339ac9a87ceac25c8a24f63b..220b80b4098a7a938a33d6cbab5c58f10b015cd6 100644 (file)
@@ -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
index d0fc9ee51a50e47794865b8f4489fa62d5b62836..b97cd3013be7a8848e104c5a15c57f9d1125fba6 100644 (file)
@@ -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