-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Stack overflow with Boxed array #53827
Copy link
Copy link
Open
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-arrayArea: `[T; N]`Area: `[T; N]`A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationA-codegenArea: Code generationArea: Code generationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-arrayArea: `[T; N]`Area: `[T; N]`A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationA-codegenArea: Code generationArea: Code generationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is possibly the same bug as
#40862
Using the latest version of Rust
rustc 1.27.2 (58cc626 2018-07-18)
The following code causes a stack overflow
Workarounds
Using
Vec<T>This does not have overhead.
Unstably using
new_uninitThis requires an unstable API and unsafe, but is more flexible.