digitalmars.D.bugs - [Issue 22402] New: importC: Error: can't subtract '__tag2[1]' from
- d-bugmail puremagic.com (31/31) Oct 17 2021 https://issues.dlang.org/show_bug.cgi?id=22402
https://issues.dlang.org/show_bug.cgi?id=22402 Issue ID: 22402 Summary: importC: Error: can't subtract '__tag2[1]' from pointer Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: ibuclaw gdcproject.org --- typedef struct { short c; } S1; typedef struct { S1 *a; S1 b[1]; } S2; int f1(S1 *a, S1 b[1]) { return a - b; // OK } int f2(S2 *s) { return s->a - s->b; // Error } --
Oct 17 2021