Bug 22061 – importC: Error: alias 'TYPE' conflicts with union 'TYPE'
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-21T17:42:17Z
Last change time
2021-06-30T09:22:54Z
Keywords
ImportC, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-06-21T17:42:17Z
From preprocessed headers for stdlib.h
---
union pthread_attr_t
{
char __size[56];
long int __align;
};
typedef union pthread_attr_t pthread_attr_t;
Comment #1 by bugzilla — 2021-06-27T10:21:42Z
This works now.
Comment #2 by dlang-bot — 2021-06-30T09:22:54Z
dlang/dmd pull request #12729 "Add tests Issue 22061 - importC: Error: alias 'TYPE' conflicts with union 'TYPE'" was merged into master:
- f5022099b8542f606841ae2655694434ce99673c by Iain Buclaw:
Add tests Issue 22061 - importC: Error: alias 'TYPE' conflicts with union 'TYPE'
https://github.com/dlang/dmd/pull/12729