// PR c++/122625 // { dg-additional-options "-fmodules" } // { dg-module-cmi M } export module M; struct integral_constant { void f() const {} }; struct span { template static constexpr integral_constant __v{}; template static constexpr integral_constant partial{}; }; template constexpr integral_constant span::partial{}; template struct nested { template static const U arr[3]; }; template struct nested { template static const U arr[3]; }; template template const U nested::arr[3] = {}; template template const U nested::arr[3] = {}; template template const U nested::arr[3] = {}; export inline void format() { span::__v<1>.f(); span::partial<5, 0>.f(); nested::arr[0].f(); nested::arr[0].f(); nested::arr[0].f(); }