// DR 1558 still applies when using void_t as a template-argument. // { dg-do compile { target c++11 } } template using void_t = void; template struct A { }; struct B { typedef int foo; }; template A> f(); // { dg-error "int" } template A g(); int main() { f(); g(); f(); // { dg-error "no match" } }