Skip to content
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

thread 'rustc' panicked at 'internal error: entered unreachable code: Reg { kind: Integer, size: Size(3 bytes) }', src/abi/pass_mode.rs:27:14 #1234

Closed
bjorn3 opened this issue Jun 27, 2022 · 4 comments
Labels
A-abi Area: ABI handling C-bug Category: This is a bug.

Comments

@bjorn3
Copy link
Member

bjorn3 commented Jun 27, 2022

#[repr(C)]
pub struct bool_11 {
    field0: bool,
    field1: bool,
    field2: bool,
    field3: bool,
    field4: bool,
    field5: bool,
    field6: bool,
    field7: bool,
    field8: bool,
    field9: bool,
    field10: bool,
}

#[no_mangle]
pub extern "C" fn bool_struct_in_11(arg0: bool_11) {}

Found using https://github.com/Gankra/abi-checker

@bjorn3 bjorn3 added C-bug Category: This is a bug. A-abi Area: ABI handling labels Jun 27, 2022
@bjorn3

This comment was marked as off-topic.

@bjorn3
Copy link
Member Author

bjorn3 commented Jun 28, 2022

With 45b6cd6 all abi-checker tests pass now.

@Gankra
Copy link

Gankra commented Jun 28, 2022

This inspired me to add a trophy-case to abi-checker: https://github.com/Gankra/abi-checker/blob/main/README.md#trophy-case

But I can remove this entry if you'd like.

@bjorn3
Copy link
Member Author

bjorn3 commented Jun 28, 2022

I'm fine with having it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-abi Area: ABI handling C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants