[Issue 22973] New: importC: sizeof with array and pointer access gives 'array type has incomplete element type'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 2 20:58:31 UTC 2022


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

          Issue ID: 22973
           Summary: importC: sizeof with array and pointer access gives
                    'array type has incomplete element type'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: duser at neet.fi
                CC: duser at neet.fi

int *ps[1];
_Static_assert(sizeof(ps[0][0]) == sizeof(int), "");

Error: array type has incomplete element type `ps[0]`

--


More information about the Digitalmars-d-bugs mailing list