-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-codegenArea: Code generationArea: Code generationI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
@am0d reported that this code: https://gist.github.com/3885764 causes this assertion failure:
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")```
The assertion failure is the same as in #2718, but it must be at least a slightly different bug, as the test for #2718 passes.
If I change the struct definition in the code to:
struct Tree {
mut leftTree: Option<@Tree>,
mut rightTree: Option<@Tree>,
key: int
}
it compiles successfully.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️