[Issue 21085] [glue] Only 9999 "hidden identifiers" can be generated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 10 12:09:38 UTC 2020


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

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11542 "merge stable" was merged into master:

- 50dfa0de2f24996dbdb748ef9a4cd1eb97f463ac by Stefan Koch:
  Fix Issue 21085 - Increase size for temporary HID identifier

  For hidden parameters, a unique identifier is generated within the backend
  of the form __HID%d.
  For that string "__HID".length + 4 + "\0".length bytes were allocated,
  Making 9999 hidden parameters the highest number which could be used.
  This change removes the assumption that there can be only 9999 hidden
parameters.
  And extends the buffer to the maximal number of 10 digits which is the maxmal
number that can be represented with a 32bit unsinged integer.

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

--


More information about the Digitalmars-d-bugs mailing list