www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21972] New: importC: Error: no struct-declarator-list for

https://issues.dlang.org/show_bug.cgi?id=21972

          Issue ID: 21972
           Summary: importC: Error: no struct-declarator-list for struct
                    with only anonymous struct/union members
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

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.

--
May 25