* decl.c (cp_finish_decl): If a concept initializer is missing, use
true.
From-SVN: r259091
2018-04-04 Jason Merrill <jason@redhat.com>
+ PR c++/85133 - ICE with missing concept initializer.
+ * decl.c (cp_finish_decl): If a concept initializer is missing, use
+ true.
+
PR c++/85118 - wrong error with generic lambda and std::bind.
* call.c (add_template_conv_candidate): Disable if there are any
call operators.
if (!VAR_P (decl) || type_dependent_p)
/* We can't do anything if the decl has dependent type. */;
else if (!init && is_concept_var (decl))
- error ("variable concept has no initializer");
+ {
+ error ("variable concept has no initializer");
+ init = boolean_true_node;
+ }
else if (init
&& init_const_expr_p
&& TREE_CODE (type) != REFERENCE_TYPE
--- /dev/null
+// PR c++/85133
+// { dg-additional-options "-std=c++17 -fconcepts" }
+
+template<typename> concept bool C; // { dg-error "no initializer" }
+
+template<C...> struct A {};
+
+A<int> a;