File tree 2 files changed +6
-6
lines changed
regression-tests/test-results
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ namespace ns {
44
44
} // namespace ns
45
45
46
46
class v {
47
- public: static constexpr auto f = []([[maybe_unused]] auto const & unnamed_param_1) mutable -> auto { return 0 ; };
47
+ public: static constexpr auto f = []([[maybe_unused]] auto const & unnamed_param_1) -> auto { return 0 ; };
48
48
public: [[nodiscard]] static auto g (auto const & i) -> auto;
49
49
};
50
50
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class myclass3 {
78
78
public: static constexpr auto i0 = std::array{0 };
79
79
public: static constexpr auto i1 = i0;
80
80
public: static constexpr auto i3 = i0;
81
- public: static constexpr auto i7 = []() mutable -> auto { return 0 ; };
81
+ public: static constexpr auto i7 = []() -> auto { return 0 ; };
82
82
83
83
// Defined out of line.
84
84
public: static const myclass3 o2;
@@ -130,8 +130,8 @@ auto main() -> int{
130
130
}
131
131
132
132
#line 47 "pure2-type-and-namespace-aliases.cpp2"
133
- inline CPP2_CONSTEXPR myclass3 myclass3::o2 = myclass3();
134
- inline CPP2_CONSTEXPR myclass3 myclass3::o4 = o2 ;
135
- inline CPP2_CONSTEXPR myclass4 myclass3::o5 = myclass4();
136
- inline CPP2_CONSTEXPR myclass5 myclass3::o6 = myclass5();
133
+ inline CPP2_CONSTEXPR myclass3 myclass3::o2{ myclass3 () } ;
134
+ inline CPP2_CONSTEXPR myclass3 myclass3::o4{ o2 } ;
135
+ inline CPP2_CONSTEXPR myclass4 myclass3::o5{ myclass4 () } ;
136
+ inline CPP2_CONSTEXPR myclass5 myclass3::o6{ myclass5 () } ;
137
137
You can’t perform that action at this time.
0 commit comments