PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr77655.C
blobab2e942cbb8f7a189fee91020bda4f81e5f2d626
1 // PR c++/77655
2 // { dg-do compile { target c++11 } }
4 template <class F> void g(F);
5 template <class... A>
6 auto h(A &&... a) -> decltype(g(0, g<decltype(a)>(a)...)) {  // { dg-error "no matching" }
7   h([] {});  // { dg-error "no matching" }
10 int main() { 
11   h(); 
12   return 0;