Layout sanity failed check: "size mismatch between ABI and layout in TyAndLayout". Zero size array in union. #103634
Labels
A-array
Area: `[T; N]`
A-layout
Area: Memory layout of types
C-bug
Category: This is a bug.
F-transmutability
`#![feature(transmutability)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Found with a modified fuzz-rustc
About this testcase
Origin:
test
function while keeping theassert
module normal-ishElements that seem necessary:
a
andb
mentioning different size things (u16
vsu8
) seems necessary#[repr(C)]
seems necessaryICE output
In a compiler with debug assertions enabled, this trips: "size mismatch between ABI and layout in TyAndLayout".
Output including layouts, backtraces, and query stack
Version
Built from 44fcfb0 (master some time yesterday, 2022-10-26)
config.toml
CC @jswrenn, who might understand the
BikeshedIntrinsicFrom
parts of the testcaseCC @RalfJung, who added the assertion
The text was updated successfully, but these errors were encountered: