/cp
2013-10-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58581
* call.c (build_over_call): Check return value of mark_used.
/testsuite
2013-10-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58581
* g++.dg/cpp0x/deleted1.C: New.
From-SVN: r204249
+2013-10-30 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58581
+ * call.c (build_over_call): Check return value of mark_used.
+
2013-10-30 Jason Merrill <jason@redhat.com>
* semantics.c (finish_compound_literal): Don't create a static variable
mark_versions_used (fn);
}
- if (!already_used)
- mark_used (fn);
+ if (!already_used
+ && !mark_used (fn))
+ return error_mark_node;
if (DECL_VINDEX (fn) && (flags & LOOKUP_NONVIRTUAL) == 0
/* Don't mess with virtual lookup in fold_non_dependent_expr; virtual
+2013-10-30 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58581
+ * g++.dg/cpp0x/deleted1.C: New.
+
2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
* gcc.target/arm/lp1243022.c: New test.
--- /dev/null
+// PR c++/58581
+// { dg-do compile { target c++11 } }
+
+template<typename T> int foo(T) noexcept(T()) = delete;
+
+int i = foo(0); // { dg-error "deleted" }