Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in Array.reduce #1105

Closed
Efimero opened this issue Dec 29, 2020 · 3 comments
Closed

bug in Array.reduce #1105

Efimero opened this issue Dec 29, 2020 · 3 comments
Labels

Comments

@Efimero
Copy link
Contributor

Efimero commented Dec 29, 2020

Attempting to use the same array that is being reduced from within the lambda in the reduce will copmile and cause a segfault instead of not compiling.

@hellerve hellerve added the bug label Dec 29, 2020
@TimDeve
Copy link
Contributor

TimDeve commented Dec 29, 2020

If you're borrowing/consuming your array in the lambda rather than using a reference to it then it's probably #1040

@Efimero
Copy link
Contributor Author

Efimero commented Dec 29, 2020

sounds about right
here's a link to the commit with the crash for reference https://git.lubar.me/efi/Carpgame/commit/3c447c0875dc097efb515be2aaa6ddc98f894492

@TimDeve
Copy link
Contributor

TimDeve commented Dec 31, 2020

@eriksvedang Should we close in favor of the other issue then?

@Efimero Efimero closed this as completed Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants