Thread overview
[Issue 20995] Range violation with -preview=dip1021
Jul 06
Dlang Bot
Jul 06
Dlang Bot
June 30
https://issues.dlang.org/show_bug.cgi?id=20995

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |live

--
June 30
https://issues.dlang.org/show_bug.cgi?id=20995

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bcarneal11@gmail.com

--- Comment #1 from moonlightsentinel@disroot.org ---
*** Issue 20996 has been marked as a duplicate of this issue. ***

--
June 30
https://issues.dlang.org/show_bug.cgi?id=20995

--- Comment #2 from Bruce Carneal <bcarneal11@gmail.com> ---
The ICE eliciting function here is marked @live whereas in the supposed duplicate 20996 it is not.

I'd guess that the root cause is, indeed, the same but the test case for 20996 is simpler.

--
July 06
https://issues.dlang.org/show_bug.cgi?id=20995

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@FeepingCreature updated dlang/dmd pull request #10999 "Fix: DIP 1021: when len is smaller than escapeByStorage, only use first len fields" fixing this issue:

- Fix Issue 20995 - Range violation with -preview=dip1021

  When `len` is smaller than `escapeByStorage`, only use first `len` fields.

  Co-authored-by: MoonlightSentinel <moonlightsentinel@disroot.org>

https://github.com/dlang/dmd/pull/10999

--
July 06
https://issues.dlang.org/show_bug.cgi?id=20995

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #10999 "Fix: DIP 1021: when len is smaller than escapeByStorage, only use first len fields" was merged into master:

- 6efd8a5d22d58b5bad7b88049ad916440b4c55e5 by Mathis Beer:
  Fix Issue 20995 - Range violation with -preview=dip1021

  When `len` is smaller than `escapeByStorage`, only use first `len` fields.

  Co-authored-by: MoonlightSentinel <moonlightsentinel@disroot.org>

https://github.com/dlang/dmd/pull/10999

--