* lambda.c (build_capture_proxy): Call complete_type.
From-SVN: r258447
+2018-03-12 Jason Merrill <jason@redhat.com>
+
+ PR c++/84802 - ICE capturing uninstantiated class.
+ * lambda.c (build_capture_proxy): Call complete_type.
+
2018-03-09 Jason Merrill <jason@redhat.com>
PR c++/84770 - ICE with typedef and parameter pack.
object = convert (type, ptr);
}
+ complete_type (type);
+
var = build_decl (input_location, VAR_DECL, name, type);
SET_DECL_VALUE_EXPR (var, object);
DECL_HAS_VALUE_EXPR_P (var) = 1;
--- /dev/null
+// PR c++/84802
+// { dg-do compile { target c++14 } }
+
+template <class T> struct A { };
+
+void f (A<int>& ar)
+{
+ [](const auto& x)
+ { return [x]{}(); }
+ (ar);
+}