Closed ivanbakel closed 4 years ago
Thanks for the detailed report. I think this is the same assertion as is being hit in #3453.
@kapilash has a PR that fixes #3453. It does not however fix this. So this is probably not the same issue (although it might be similar).
I was experimenting with how Pony handles paths on the LHS of an assignment which have side-effects, and I managed to trip over this compiler bug.
System
The distribution is Parabola, a free Arch variant. Unless packages contain non-free software, they are normally sourced directly from Archlinux instead of being repackaged.
Compiler version
Minimal Example
Expected Result
There's nothing inherently wrong with the code as written, I think - so it should compile, even if it is a bit nonsensical and people should be discouraged from writing it in production.
Compiler Output