[Issue 22400] New: importC: Error: unknown, when compiling source with typedef'd initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 17 13:15:35 UTC 2021


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

          Issue ID: 22400
           Summary: importC: Error: unknown, when compiling source with
                    typedef'd initializer
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

Variation of issue 22399, but using `typedef struct`.
---
typedef struct S1
{
    unsigned short f1;
} S1_t;
struct S2
{
    const S1_t *f1;
};
const S1_t C1[1] = { {12} };
const struct S2 C3 = {C1};

--


More information about the Digitalmars-d-bugs mailing list