/cp
2018-04-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84630
* pt.c (tsubst_lambda_expr): Check begin_lambda_type return value
for error_mark_node.
/testsuite
2018-04-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84630
* g++.dg/cpp0x/pr84630.C: New.
From-SVN: r259460
+2018-04-18 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84630
+ * pt.c (tsubst_lambda_expr): Check begin_lambda_type return value
+ for error_mark_node.
+
2018-04-18 Jakub Jelinek <jakub@redhat.com>
PR c++/84463
}
tree type = begin_lambda_type (r);
+ if (type == error_mark_node)
+ return error_mark_node;
/* Do this again now that LAMBDA_EXPR_EXTRA_SCOPE is set. */
determine_visibility (TYPE_NAME (type));
+2018-04-18 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84630
+ * g++.dg/cpp0x/pr84630.C: New.
+
2018-04-18 Jakub Jelinek <jakub@redhat.com>
PR c++/84463
--- /dev/null
+// PR c++/84630
+// { dg-do compile { target c++11 } }
+
+template <typename...> struct c {
+ template <int> __attribute__((noinline([] {}))) int b(); // { dg-error "wrong number of arguments" }
+};
+c<> a;