On Monday, 3 August 2020 at 19:42:51 UTC, Steven Schveighoffer wrote:
On 8/3/20 3:22 PM, Bruce Carneal wrote:

Thanks Steve (and Chad).  Summary: underspecified, varying behavior across versions, buggy.

Steve, what's the best way for me to report this?  Are spec issues lumped in with the other bugzilla reports?

Yep. You can file under dlang.org with the spec keyword.

Although this looks like it's not exactly a spec issue. I'd start it as a dmd bug (I don't know the exact interaction with the compiler and the library). It might also be a druntime bug.

-Steve

FWIW ..using gdc Debian 8.3.0-6, dst[]= generates a range error
    auto a = [1, 2, 3];
    auto b = [4, 5, 6];
    int[] dst = new int[4]; // note the extra element
    dst[] = a[] + b[];
    writeln(dst[3]);

Reply via email to