-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-FFIArea: Foreign function interface (FFI)Area: Foreign function interface (FFI)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
Description
The following compiles fine, but uncommenting any of the currently-commented extern
functions makes the compiler ICE.
struct Foo { x: int }
extern {
// fn foo(1: ());
// fn bar((): int);
// fn baz(Foo { x }: int);
fn qux((x,y): ());
}
fn main() {}
For foo
the ICE message is
error: internal compiler error: node_id_to_type: no type for node `expr 1 (id=12)`
and the others are similar.
Metadata
Metadata
Assignees
Labels
A-FFIArea: Foreign function interface (FFI)Area: Foreign function interface (FFI)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️