www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22028] New: importC: Parser accepts initializers for struct

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

          Issue ID: 22028
           Summary: importC: Parser accepts initializers for struct
                    members
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

This isn't valid C, but is accepted by the CParser
---
struct S
{
    int fld = 2;
};

--
Jun 16