// P0846R0 // { dg-do compile } // { dg-options "-std=c++2a" } int h; void g(); void e(); void e(int); void e(int, int); namespace N { struct A { }; template static int f(T) { return 1; } template static int g(T) { return 2; } template static int h(T); template static int e(T) { return 3; } } int v = e(N::A()); int x = f(N::A()); int y = g(N::A()); int z = h(N::A()); // { dg-error "expected" }