Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: make reproducer compilable
  • Loading branch information
JohelEGP authored and threeifbyair committed Nov 15, 2025
commit cd7cb99c6fec16a8e22cdea5f87e145e942ee1ae
5 changes: 2 additions & 3 deletions regression-tests/pure2-bugfix-for-nested-lists.cpp2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ main: () = {
}

issue_1283: () = {
arr: std::array<std::string, 10> = ();
f: MyFunctor = ("Some initial value");
std::ranges::generate(arr, :() (f&$*)());
f := :() = { };
_ = :() = (f&$*)();
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ auto main() -> int{

#line 29 "pure2-bugfix-for-nested-lists.cpp2"
auto issue_1283() -> void{
std::array<std::string,10> arr {};
MyFunctor f {"Some initial value"};
std::ranges::generate(cpp2::move(arr), [_0 = (&f)]() mutable -> auto { return (*cpp2::impl::assert_not_null(_0))(); });
auto f {[]() -> void{}};
static_cast<void>([_0 = (&f)]() mutable -> void { (*cpp2::impl::assert_not_null(_0))(); });
}