LLVM assertion failure when using rustc -g
on struct with unsized trailing field
#23477
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Compiling the following program with
rustc -g
fails an LLVM assertion:This is basically a minimal test-case, as removing pretty much anything (including fields a or b!) avoids the assertion. Similarly, compiling without
-g
does not produce an assertion failure.The backtrace looks like this:
Rustc version is
rustc 1.0.0-nightly (30e1f9a1c 2015-03-14) (built 2015-03-15)
.The text was updated successfully, but these errors were encountered: