[Issue 12198] Catch some wrong overlapping array operations at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 5 13:16:11 UTC 2023


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #2 from Nick Treleaven <nick at geany.org> ---
With dmd v2.104.0, this is the only line that fails:

>    a[] = a[];

Even this works:

    a[] = b[] / a[];

So it's not just rewriting it as `op=`.

--


More information about the Digitalmars-d-bugs mailing list