[Issue 22858] New: [REG2.099] Incorrect alignment of void*[0]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 7 22:52:27 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22858
Issue ID: 22858
Summary: [REG2.099] Incorrect alignment of void*[0]
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: johanengelen at weka.io
Testcase:
```
struct S {
int a;
void*[0] arr;
}
static assert (S.arr.offsetof % size_t.sizeof == 0); // aligned pointer?
```
Alignment is correct for 2.097, but is incorrect for 2.099. (Tested with LDC
1.27 and 1.29-beta). Could be a regression of 2.098 or 2.099.
--
More information about the Digitalmars-d-bugs
mailing list