// PR c++/119938 // { dg-additional-options "-fmodules -std=c++20" } // { dg-module-cmi {} } struct A { int x; }; template struct B { static_assert(a.x == 1); }; using C = B; template void D() { static_assert(a.x == 2); }; inline void E() { D(); } template struct F { static constexpr int result = a.x; }; template constexpr int G() { return F::result; };