[Issue 22028] New: importC: Parser accepts initializers for struct members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 16 08:10:59 UTC 2021


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 at puremagic.com
          Reporter: ibuclaw at gdcproject.org

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

--


More information about the Digitalmars-d-bugs mailing list