Bug 21963 – importC: Support declaring union types

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-24T12:26:04Z
Last change time
2021-05-26T10:39:55Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-05-24T12:26:04Z
Unions are rejected by the compiler, and yet structs are not. --- union a_union { int iv; float fv; };
Comment #1 by dlang-bot — 2021-05-24T12:46:52Z
@ibuclaw created dlang/dmd pull request #12575 "fix Issue 21963 - importC: Support declaring union types" fixing this issue: - fix Issue 21963 - importC: Support declaring union types https://github.com/dlang/dmd/pull/12575
Comment #2 by ibuclaw — 2021-05-26T10:39:55Z