+2019-05-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * typeck.c (cp_build_function_call_vec): When mark_used fails
+ unconditionally return error_mark_node.
+
2019-05-10 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (grokvardecl): Use an accurate location in error message
return error_mark_node;
}
- if (!mark_used (function, complain) && !(complain & tf_error))
+ if (!mark_used (function, complain))
return error_mark_node;
fndecl = function;
+2019-05-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/cpp2a/multiple-deleted-destroying-delete-error-1.C: New.
+ * g++.dg/cpp2a/multiple-deleted-destroying-delete-error-2.C: Likewise.
+
2019-05-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/61968
--- /dev/null
+// { dg-do compile { target c++2a } }
+
+#include <new>
+
+namespace delete_selection_d {
+ struct B {
+ void operator delete(void*) = delete;
+ void operator delete(B *, std::destroying_delete_t) = delete;
+ };
+ void delete_B(B *b) { delete b; } // { dg-bogus "deleted .* deleted" }
+ // { dg-error "deleted" "" { target c++2a } .-1 }
+}
--- /dev/null
+// { dg-do compile { target c++2a } }
+
+#include <new>
+
+namespace delete_selection_r {
+ struct B {
+ void operator delete(B *, std::destroying_delete_t) = delete;
+ void operator delete(void*) = delete;
+ };
+ void delete_B(B *b) { delete b; } // { dg-bogus "deleted .* deleted" }
+ // { dg-error "deleted" "" { target c++2a } .-1 }
+}