Bug 21972 – importC: Error: no struct-declarator-list for struct with only anonymous struct/union members
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-25T16:56:59Z
Last change time
2021-06-01T22:10:20Z
Keywords
ImportC, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-05-25T16:56:59Z
Same error as issue 21961, but this time the parser misses that there are fields which have been added to the struct.
---
struct outer
{
struct
{
int nested;
};
};
---
This would suggest the type is not being constructed in the same way that D anon struct/union types are.