When a type is #[repr(simd)]
, #[repr(align(N))]
annotations are ignored.
#130402
Labels
A-align
Area: alignment control (`repr(align(N))` and so on)
A-repr
Area: the `#[repr(stuff)]` attribute
A-SIMD
Area: SIMD (Single Instruction Multiple Data)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
See this example playground
I expected to see this happen: an alignment of at least 32 to be printed.
Instead, this happened: the alignment is only
16
, the align of the underlying platform 128bit simd vector type.Meta
Seen on playground nightly with version
The text was updated successfully, but these errors were encountered: