PR c++/60219
* pt.c (coerce_template_parms): Bail if argument packing fails.
From-SVN: r208003
2014-02-21 Jason Merrill <jason@redhat.com>
+ PR c++/60219
+ * pt.c (coerce_template_parms): Bail if argument packing fails.
+
PR c++/60224
* decl.c (cp_complete_array_type, maybe_deduce_size_from_array_init):
Don't get confused by a CONSTRUCTOR that already has a type.
/* Store this argument. */
if (arg == error_mark_node)
lost++;
+ if (lost)
+ break;
TREE_VEC_ELT (new_inner_args, parm_idx) = arg;
/* We are done with all of the arguments. */
--- /dev/null
+// PR c++/60219
+// { dg-require-effective-target c++11 }
+
+template<typename..., int> void foo();
+
+void bar()
+{
+ foo<0>; // { dg-error "" }
+}