// PR c++/107741 void side_effect(); struct A { static constexpr auto x = []{ return 1; }; }; template struct B { static inline auto x = (side_effect(), []{ return 2; }(), []{ return 3; }()); }; template struct C { static int x; }; template int C::x = (side_effect(), []{ return 4; }()); template int C::x; int f() { A::x(); return B::x; } struct D { template static constexpr auto x = []{ return 5; }; }; template struct E { template static inline auto x = (side_effect(), []{ return 6; }(), []{ return 7; }()); }; int g() { D::x(); return E::x; }