[Issue 16098] align(N) not respected for stack variables if N > platform stack alignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 20 12:42:22 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=16098
--- Comment #5 from kinke <kinke at gmx.net> ---
This issue blocks https://github.com/dlang/phobos/pull/8460. On Win32 with its
4-bytes stack alignment, the following assertion fails most of the time:
void main() {
byte a;
align(8) byte b;
assert((cast(size_t) &b) % 8 == 0);
}
--
More information about the Digitalmars-d-bugs
mailing list