Bug 23879 – ImportC: Windows system headers use __alignof
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2023-05-02T19:24:14Z
Last change time
2023-05-04T09:54:36Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Max Samukha
Comments
Comment #0 by maxsamukha — 2023-05-02T19:24:14Z
struct S {
int x;
};
int x = __alignof(struct S);
windows.c(7): Error: expression expected, not `struct
Comment #1 by dlang-bot — 2023-05-04T01:14:52Z
@WalterBright created dlang/dmd pull request #15174 "fix Issue 23879 - ImportC: Windows system headers use __alignof" fixing this issue:
- fix Issue 23879 - ImportC: Windows system headers use __alignof
https://github.com/dlang/dmd/pull/15174
Comment #2 by dlang-bot — 2023-05-04T09:54:36Z
dlang/dmd pull request #15174 "fix Issue 23879 - ImportC: Windows system headers use __alignof" was merged into master:
- 56fa78e8783eda8e7f8973259f98291bdd55f59b by Walter Bright:
fix Issue 23879 - ImportC: Windows system headers use __alignof
https://github.com/dlang/dmd/pull/15174