Closed
Description
To reproduce, just clone this repo: https://github.com/tomaka/rustc-issue-repro (it's a stripped down version of my project)
cargo build
should trigger:
Assertion failed: std::all_of(Expr.begin(), Expr.end(), [](const DIExpression *E) { return E && E->isBitPiece(); }) && "conflicting locations for variable", file c:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\llvm\lib\codegen\asmprinter\DwarfDebug.h, line 154
This is with the MSVC 64bits nightly from a few days ago.
The only clue that I have is that here if you replace the call to VertexBuffer::immutable
with unsafe { ::std::mem::zeroed() }
, it fixes the problem.
The problematic call graph is:
- https://github.com/tomaka/rustc-issue-repro/blob/ef9ae6f89140143b74e902830d114a6d0b2fc357/src/main.rs#L34
- https://github.com/tomaka/rustc-issue-repro/blob/ef9ae6f89140143b74e902830d114a6d0b2fc357/src/game_scene/scene.rs#L35
- https://github.com/tomaka/rustc-issue-repro/blob/ef9ae6f89140143b74e902830d114a6d0b2fc357/src/game_scene/view.rs#L33
- https://github.com/tomaka/rustc-issue-repro/blob/ef9ae6f89140143b74e902830d114a6d0b2fc357/src/game_scene/models.rs#L22
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Debugging information in compiled programs (DWARF, PDB, etc.)Category: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.