// PR c++/84454 // { dg-do compile { target c++11 } } template void g(F&&, A&&...) {} template auto h(A&&... a) -> decltype(g(0, g(a)...)) { g(a...); // { dg-error "no match" } } int main() { h(); }