diff --git a/regression-tests/test-results/pure2-bugfix-for-ufcs-name-lookup.cpp b/regression-tests/test-results/pure2-bugfix-for-ufcs-name-lookup.cpp index 6fbb08cf6..a9a296662 100644 --- a/regression-tests/test-results/pure2-bugfix-for-ufcs-name-lookup.cpp +++ b/regression-tests/test-results/pure2-bugfix-for-ufcs-name-lookup.cpp @@ -44,7 +44,7 @@ namespace ns { } // namespace ns class v { - public: static constexpr auto f = []([[maybe_unused]] auto const& unnamed_param_1) mutable -> auto { return 0; }; + public: static constexpr auto f = []([[maybe_unused]] auto const& unnamed_param_1) -> auto { return 0; }; public: [[nodiscard]] static auto g(auto const& i) -> auto; }; diff --git a/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp b/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp index 39ab23d66..a5297b681 100644 --- a/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp +++ b/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp @@ -78,7 +78,7 @@ class myclass3 { public: static constexpr auto i0 = std::array{0}; public: static constexpr auto i1 = i0; public: static constexpr auto i3 = i0; - public: static constexpr auto i7 = []() mutable -> auto { return 0; }; + public: static constexpr auto i7 = []() -> auto { return 0; }; // Defined out of line. public: static const myclass3 o2; @@ -130,8 +130,8 @@ auto main() -> int{ } #line 47 "pure2-type-and-namespace-aliases.cpp2" - inline CPP2_CONSTEXPR myclass3 myclass3::o2 = myclass3(); - inline CPP2_CONSTEXPR myclass3 myclass3::o4 = o2; - inline CPP2_CONSTEXPR myclass4 myclass3::o5 = myclass4(); - inline CPP2_CONSTEXPR myclass5 myclass3::o6 = myclass5(); + inline CPP2_CONSTEXPR myclass3 myclass3::o2{ myclass3() }; + inline CPP2_CONSTEXPR myclass3 myclass3::o4{ o2 }; + inline CPP2_CONSTEXPR myclass4 myclass3::o5{ myclass4() }; + inline CPP2_CONSTEXPR myclass5 myclass3::o6{ myclass5() };