Bug 23789 – ImportC: __declspec(align(n))

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2023-03-17T09:03:06Z
Last change time
2023-03-28T09:35:27Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Max Samukha

Comments

Comment #0 by maxsamukha — 2023-03-17T09:03:06Z
Example from Windows SDK: typedef struct __declspec(align(16)) _M128A { ULONGLONG Low; LONGLONG High; } M128A, *PM128A;
Comment #1 by dlang-bot — 2023-03-25T00:04:17Z
@WalterBright created dlang/dmd pull request #15036 "fix Issue 23789 - ImportC: __declspec(align(n))" fixing this issue: - fix Issue 23789 - ImportC: __declspec(align(n)) - fix Issue 23789 - ImportC: __declspec(align(n)) https://github.com/dlang/dmd/pull/15036
Comment #2 by dlang-bot — 2023-03-26T21:50:34Z
dlang/dmd pull request #15036 "fix Issue 23789 - ImportC: __declspec(align(n))" was merged into master: - 6f2d1f45e95a9aed9b05b09d1404508b867e7639 by Walter Bright: fix Issue 23789 - ImportC: __declspec(align(n)) - 9790647956c377e7eaa0ade2323c7ee7cc746cdf by Walter Bright: fix Issue 23789 - ImportC: __declspec(align(n)) https://github.com/dlang/dmd/pull/15036
Comment #3 by bugzilla — 2023-03-28T00:05:24Z
The fix wasn't complete, still have the typedef problem.
Comment #4 by dlang-bot — 2023-03-28T01:43:23Z
@WalterBright created dlang/dmd pull request #15044 "fix Issue 23789 - ImportC: __declspec(align(n)) take 2" fixing this issue: - fix Issue 23789 - ImportC: __declspec(align(n)) take 2 https://github.com/dlang/dmd/pull/15044
Comment #5 by dlang-bot — 2023-03-28T09:35:27Z
dlang/dmd pull request #15044 "fix Issue 23789 - ImportC: __declspec(align(n)) take 2" was merged into master: - 6e30025aace8fc631d1b41c1b240b3ebfec66039 by Walter Bright: fix Issue 23789 - ImportC: __declspec(align(n)) take 2 https://github.com/dlang/dmd/pull/15044