[Issue 22926] importC: cast to D type alias in array length gives syntax error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 2 01:54:18 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=22926
--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to duser from comment #0)
> struct S { int x, y; };
> char cs[ ((size_t)((char *)&((struct S *)0)->y - (char *)0)) ];
>
> dmd v2.099.0:
> Error: dereference of invalid pointer `cast(S*)0LU`
> current git master:
> Error: identifier or `(` expected
This problem has been fixed.
--
More information about the Digitalmars-d-bugs
mailing list