* pt.c (instantiate_decl): Any defaulted function is defined.
authorJason Merrill <jason@redhat.com>
Fri, 1 Jun 2018 20:49:27 +0000 (16:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Jun 2018 20:49:27 +0000 (16:49 -0400)
From-SVN: r261084

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

index 434fde6..220b80b 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 d0fc9ee..b97cd30 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