summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr77655.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr77655.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr77655.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr77655.C b/gcc/testsuite/g++.dg/cpp0x/pr77655.C
new file mode 100644
index 00000000000..ab2e942cbb8
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr77655.C
@@ -0,0 +1,13 @@
+// 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;
+}