2019-03-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84518
* g++.dg/cpp0x/lambda/lambda-ice30.C: New.
* g++.dg/cpp0x/lambda/lambda-ice31.C: Likewise.
From-SVN: r269469
+2019-03-07 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84518
+ * g++.dg/cpp0x/lambda/lambda-ice30.C: New.
+ * g++.dg/cpp0x/lambda/lambda-ice31.C: Likewise.
+
2019-03-07 Jakub Jelinek <jakub@redhat.com>
PR translation/79999
--- /dev/null
+// PR c++/84518
+// { dg-do compile { target c++11 } }
+
+template<int> void foo()
+{
+ int x[=]; // { dg-error "expected" }
+ [&x]{};
+}
+
+void bar()
+{
+ foo<0>();
+}
--- /dev/null
+// PR c++/84518
+// { dg-do compile { target c++11 } }
+
+template<typename T> void foo()
+{
+ T x[=]; // { dg-error "expected" }
+ [&x]{};
+}