Rust produces unlinkable code when writing large arrays #108566
Labels
A-array
Area: `[T; N]`
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Either the code compiles or the rust compiler tells me I can't have arrays this large.
Instead, this happened: The rust compiler emits objects that cannot be linked.
gcc error message:
clang/mold error message:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: