-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler crashes on inline asssembly #54376
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
Comments
Your asm code is wrong. You need an immediate value or |
I figured it was invalid, but the compiler still shouldn't crash :) |
Yes! My remarks was "is a well-known issue". So most likely is a duplicate. |
It doesn't look like a duplicate of any of the existing inline assembly ICEs; this is the only issue I've found which manifests as an unwrap on a |
This will be fixed by #54568, which checks whether the constraints make sense for the inline assembly.
Although, it looks like the error message isn't particularly helpful at this point. |
Fixed by #54568. |
When compiling the following program:
I get the following failure:
Playground link
The text was updated successfully, but these errors were encountered: