-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fatal error in type inference adding a GC frame #12603
Comments
It's not that big of a deal to have assertion checks like that, especially when LLVM can verify that things were ok and drop the dead code. But perhaps we could make it a non-allocating error type instead to prevent GC frames? |
I would still prefer not having to worry about gc frames when an error is thrown. I think my throw local gcframe branch can already handle this and I believe when the codegen rewrite is merged there's even more we can do about it. Any idea why type inference decide to add an assertion? |
Agreed completely, but this is blocking #11895. No clue as to what's going on, but this is about as simple of an example as it gets, so hopefully one of you inference gurus can figure it out. |
Hmmm |
Maybe you can try to have different definitions of There also seems to be a missing |
Or replace |
Thanks for the quick hack! Inference can't figure it out because |
Other tools? |
All the other stuff in |
I won't claim I know the bootstrap very well but it does seems a little bit strange that we pull |
We should just remove that. Internal compiler errors shouldn't be emitted into generated code. |
yep. maybe emit it in debug mode and only have it be an |
The original testcase here now passes… and the |
Do we have test cases that capture this running as part of the test suite? |
Version: 0.4.0-dev+6494 e66175b
Minimal example:
Full output: https://gist.github.com/mbauman/a4e9fb36f67e2287a8f6
The text was updated successfully, but these errors were encountered: