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

Basile-z <b2.t...@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |b2.t...@gmx.com

--- Comment #5 from Basile-z <b2.t...@gmx.com> ---
reduced, no need for -unittest, should be a fail compilation:

---
struct Foo
{
    int[] list;
}

void main()
{
    enum foo = Foo([]);
    foo.list ~= 4;
} 
---

because `foo.list` is not modifiable (or not a Lvalue).
The error must be detected in the front-end.

--

Reply via email to