+2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58610
+ * cp-tree.h (DECL_DELETED_FN): Use LANG_DECL_FN_CHECK.
+ * call.c (print_z_candidate): Remove STRIP_TEMPLATE use.
+ * lambda.c (maybe_add_lambda_conv_op): Likewise.
+
2014-02-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60253
inform (cloc, "%s%T <conversion>", msg, candidate->fn);
else if (candidate->viable == -1)
inform (cloc, "%s%#D <near match>", msg, candidate->fn);
- else if (DECL_DELETED_FN (STRIP_TEMPLATE (candidate->fn)))
+ else if (DECL_DELETED_FN (candidate->fn))
inform (cloc, "%s%#D <deleted>", msg, candidate->fn);
else
inform (cloc, "%s%#D", msg, candidate->fn);
/* Nonzero if DECL was declared with '= delete'. */
#define DECL_DELETED_FN(DECL) \
- (DECL_LANG_SPECIFIC (FUNCTION_DECL_CHECK (DECL))->u.base.threadprivate_or_deleted_p)
+ (LANG_DECL_FN_CHECK (DECL)->min.base.threadprivate_or_deleted_p)
/* Nonzero if DECL was declared with '= default' (maybe implicitly). */
#define DECL_DEFAULTED_FN(DECL) \
the conversion op is used. */
if (varargs_function_p (callop))
{
- DECL_DELETED_FN (STRIP_TEMPLATE (fn)) = 1;
+ DECL_DELETED_FN (fn) = 1;
return;
}
+2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58610
+ * g++.dg/cpp0x/constexpr-ice11.C: New.
+
2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60314
--- /dev/null
+// PR c++/58610
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+ template<typename> A();
+};
+
+constexpr A a; // { dg-error "literal|matching" }