https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109144
Bug ID: 109144
Summary: d: Closure fields don't get same alignment as local
variable
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gcc dot gnu.org
Target Milestone: ---
Between the variable declaration, and building its associated field in a
closure, the decl alignment gets lost, so this fails.
---
void main()
{
align(128) byte var;
assert((cast(size_t) &var) % 128 == 0);
var = 73;
assert((() => var)() == 73);
}