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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 28 10:47:40 UTC 2020


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

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@UplinkCoder updated dlang/dmd pull request #11469 "[critical bugfix] Increase
size for temporary HID identifier" fixing this issue:

- 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/11469

--


More information about the Digitalmars-d-bugs mailing list