[Issue 22067] importC: cast-expression accepted as lvalue in assignment-expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 22 14:12:51 UTC 2021


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

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
DMD accepts any conditional expression on the LHS and diagnose the invalid
lvalue rather than producing a syntax error.

So the issue is that this isn't detected during semantic, unlike issue 22068
(though we could also move that to semantic too to for a consistent error
message).

--


More information about the Digitalmars-d-bugs mailing list