D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21972 - importC: Error: no struct-declarator-list for struct with only anonymous struct/union members
Summary: importC: Error: no struct-declarator-list for struct with only anonymous stru...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 major
Assignee: No Owner
URL:
Keywords: ImportC, rejects-valid
Depends on:
Blocks:
 
Reported: 2021-05-25 16:56 UTC by Iain Buclaw
Modified: 2021-06-01 22:10 UTC (History)
2 users (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-25 16:56:59 UTC
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.
Comment 1 Walter Bright 2021-06-01 22:10:20 UTC
Resolved by https://github.com/dlang/dmd/pull/12619