// PR c++/99274 // { dg-additional-options "-fmodules-ts" } // Propagate default args from import to existing decls void f(int a, int b); template void g(T a, T b); template struct A; template struct B; struct S { template void x(); void y(int n = 123); }; struct nontrivial { nontrivial(int); }; void h(nontrivial p); import "default-arg-1_a.H"; template , typename = B> struct Q; int main() { f(1); g(2); h(); S{}.x(); S{}.y(); }