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

Steven Dwy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |[email protected]
         Resolution|FIXED                       |---

--- Comment #5 from Steven Dwy <[email protected]> ---
This also applies to array literals, per 6.5.2.5-4:
> In either case [array or object], the result is an lvalue.
```
short(*v1)[2] = &(short[]){1, 2};
```

Object literals act as lvalues as expected.

Additionally, the following invalid code is now accepted:
```
char(**s1)[3] = &(&"aa");
char(***s2)[3] = &(&(&"aa"));
// and so on
```

--

Reply via email to