// PR c++/120224 // { dg-do compile { target c++11 } } template using void_t = void; template void f(void*); // #1 template void f(void_t*) { } // { dg-error "not a class" } defn of #1 template void g(int, void*); // #2 template void g(int, void_t*) { } // { dg-error "not a class" } defn of #2 int main() { f(0); // { dg-error "no match" } g(0, 0); // { dg-error "no match" } }