Miscompilation with -Zsanitizer=address #120260
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-sanitizers
Area: Sanitizers for correctness and code quality
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
llvm-fixed-upstream
Issue expected to be fixed by the next major LLVM upgrade, or backported fixes
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
And compiled with these arguments:
I expected to see this happen: assertion passes like it does on the playground or with
cargo run
.Instead, this happened:
Meta
rustc +nightly --version --verbose
:The text was updated successfully, but these errors were encountered: