[Issue 24078] [REG] crash related to concatenation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 19 08:22:03 UTC 2023


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

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

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

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15543 "Fix Issue 24078 - Fold constants on array
concatenation only for strings" was merged into stable:

- c0de9a32d21bd15ca3ca4c0baaea3a6844122e2d by Teodor Dutu:
  Fix Issue 24078 - Fold constants on array concatenation only for strings

  Without this limitation, the code could incorrectly concatenate
  `["c"] ~ "a" ~ "b"` as `["c"] ~ "ab"`, which was incorrect.

  Signed-off-by: Teodor Dutu <teodor.dutu at gmail.com>

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

--


More information about the Digitalmars-d-bugs mailing list