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

--- Comment #5 from Walter Bright <bugzi...@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.

--

Reply via email to