2018-02-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/77655
* g++.dg/cpp0x/pr77655.C: New.
From-SVN: r257896
+2018-02-22 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/77655
+ * g++.dg/cpp0x/pr77655.C: New.
+
2018-02-22 Jakub Jelinek <jakub@redhat.com>
PR c++/84496
--- /dev/null
+// PR c++/77655
+// { dg-do compile { target c++11 } }
+
+template <class F> void g(F);
+template <class... A>
+auto h(A &&... a) -> decltype(g(0, g<decltype(a)>(a)...)) { // { dg-error "no matching" }
+ h([] {}); // { dg-error "no matching" }
+}
+
+int main() {
+ h();
+ return 0;
+}