// { dg-additional-options "-fmodules -std=c++20" } // { dg-module-cmi !M } // These are not TU-local according to the standard, // but we treat as TU-local due to ABI limitations. export module M; struct A { static inline auto x = []{}; template static inline auto y = []{}; }; struct B { template static inline decltype([]{}) x = {}; // { dg-bogus "TU-local" "" { xfail *-*-* } } }; template struct C { template static inline decltype([]{}) x = {}; // { dg-bogus "TU-local" "" { xfail *-*-* } } };