-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Compiler Assertion on default argument assignment to ephemeral mutable type #4089
Comments
This is the relevant backtrace:
|
This is the assert that we were uncertain about the possibility of triggering |
Indeed, it seems that the |
Discussed on the sync call today. The fastest fix seems to be removing the assert and changing the error string at ponyc/src/libponyc/expr/reference.c Lines 173 to 185 in deb1494
Jason also says it may be possible to just skip this case in hopes that a later check will catch the issue. |
Starting with ponyc 0.49.1, the following Pony code:
causes the compiler to crash with the following assertion error:
Changing
x: Foo iso^
tox: Foo trn^
will also reproduce the issue.This issue is related to #4018, as the above code compiled with ponyc 0.49.0.
The text was updated successfully, but these errors were encountered: