D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21963 - importC: Support declaring union types
Summary: importC: Support declaring union types
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: ImportC, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2021-05-24 12:26 UTC by Iain Buclaw
Modified: 2021-05-26 10:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2021-05-24 12:26:04 UTC
Unions are rejected by the compiler, and yet structs are not.
---
union a_union
{
    int iv;
    float fv;
};
Comment 1 Dlang Bot 2021-05-24 12:46:52 UTC
@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