[Issue 22401] New: importC: Error: cannot implicitly convert expression of type 'const(int[1])' to 'const(int*)'

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


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

          Issue ID: 22401
           Summary: importC: Error: cannot implicitly convert expression
                    of type 'const(int[1])' to 'const(int*)'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

Another case of not saturating static arrays.
---
struct S2
{
    const int *f1;
};
const int C1[1] = {0};
const struct S2 C2 = {C1};

--


More information about the Digitalmars-d-bugs mailing list