[Issue 21928] Wrong location for "array literal in @nogc function main may cause GC allocation" error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 18 23:36:28 UTC 2021


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

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

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

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12530 "Fix issue 21928: pass Loc to Cat() explicitly."
was merged into master:

- d83cb7f5e50c8c0484418952e15b4d1075b45d3f by Mathis Beer:
  Fix issue 21928: pass Loc to Cat() explicitly.
  Use location of concatenation for newly-created array literal, in the cases
element ~ literal and literal ~ element.

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

--


More information about the Digitalmars-d-bugs mailing list