-
Notifications
You must be signed in to change notification settings - Fork 358
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
ICE: cannot read from extern static #2234
Comments
MVP extern "C" {
static x: [u8; 0];
}
static X: &'static [u8; 0] = unsafe { &x };
fn main() {
*X;
} |
This is very strange, so somehow the error from CTFE is propagated to runtime Miri diagnostic handling? It should behave like this. |
Ah, I got it. Will need a rustc change though: rust-lang/rust#98099 |
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this issue
Jun 21, 2022
…li-obk interpret: convert_tag_add_extra: allow tagger to raise errors Needed for rust-lang/miri#2234 r? `@oli-obk`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
code from
src/test/ui/consts/ice-zst-static-access.rs
miri panics here:
The text was updated successfully, but these errors were encountered: