-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: repr align with extern "C" functions (). #45662
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-FFI
Area: Foreign function interface (FFI)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
topecongiro
added a commit
to topecongiro/rust
that referenced
this issue
Dec 26, 2017
Closes rust-lang#27078. Closes rust-lang#27985. Closes rust-lang#39848. Closes rust-lang#42164. Closes rust-lang#42479. Closes rust-lang#45152. Closes rust-lang#45662. Closes rust-lang#45876. Closes rust-lang#45965.
bors
added a commit
that referenced
this issue
Dec 27, 2017
This isn't fixed, example should have had a |
These "components" are not exactly struct fields, but rather hardware registers. The alignment padding probably triggers an edge case, I'll have to look deeper. |
topecongiro
added a commit
to topecongiro/rust
that referenced
this issue
Jan 14, 2018
Add a test for rust-lang#38763. Update a test for rust-lang#45662.
topecongiro
added a commit
to topecongiro/rust
that referenced
this issue
Jan 14, 2018
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 25, 2018
rustc_trans: ignore trailing padding larger than 8 bytes. Fixes rust-lang#45662 by ignoring a missing second register component, as it could be entirely padding.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-FFI
Area: Foreign function interface (FFI)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
The following code ICEs on x86_64 linux
Suspect that it's this line (expecting that a struct with size > 8 has > 1 field)
rust/src/librustc_trans/cabi_x86_64.rs
Line 199 in 8b22e70
ICE message:
cc #33626
The text was updated successfully, but these errors were encountered: