-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed
Labels
A-codegenArea: Code generationArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Description
This code segfaults (as of a5fae1d 2013-03-08 18:15:40 -0800).
struct A(int);
fn main() {
let f: extern pure fn(int) -> A = A; f(4);
}
Note that extern pure fn(int) -> A is an exact type reported by the compiler for A. This occurs for arbitrary number of fields. Replacing the body of main to A(4); fixes the segfault.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.