/cp
2016-08-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/72800
* lambda.c (add_capture): Check lambda_capture_field_type return
value for error_mark_node.
/testsuite
2016-08-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/72800
* g++.dg/cpp1y/lambda-ice1.C: New.
From-SVN: r239148
+2016-08-04 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/72800
+ * lambda.c (add_capture): Check lambda_capture_field_type return
+ value for error_mark_node.
+
2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/72759
else
{
type = lambda_capture_field_type (initializer, explicit_init_p);
+ if (type == error_mark_node)
+ return error_mark_node;
if (by_reference_p)
{
type = build_reference_type (type);
+2016-08-04 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/72800
+ * g++.dg/cpp1y/lambda-ice1.C: New.
+
2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/72759
--- /dev/null
+// PR c++/72800
+// { dg-do compile { target c++14 } }
+
+void foo ()
+{
+ [n {}] {}; // { dg-error "one element|deducing" }
+}