Closed
Description
The following code causes an ICE on current master (ac5cd3b):
#![feature(i128_type)]
#[repr(C)]
struct Foo(i128);
#[link(name = "test", kind = "static")]
extern "C" {
fn foo(f: Foo) -> Foo;
}
fn main() {
unsafe {
foo(Foo(1));
}
}
ICE message:
error: internal compiler error: src/librustc_trans/cabi_x86_64.rs:321: llregtype: unhandled class
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:423
note: Run with `RUST_BACKTRACE=1` for a backtrace.