[Issue 21050] __traits(getOverloads) for templates returns incorrect symbol for the first overload

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 29 21:55:18 UTC 2020


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

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 #11431 "Fix Issue 21050 - __traits(getOverloads) for
templates returns incorr…" was merged into master:

- 9194d3aa930140cbd24829d4fb860e615b581c36 by Richard Manthorpe:
  Fix Issue 21050 - __traits(getOverloads) for templates returns incorrect
symbol for the first overload

  Template declarations are nodes in a linked list of overloads.
  Returning a template declaration from __traits(getOverloads)
  returned the tail of that list of overloads. Instead we must
  take a copy of the template declaration and remove references
  to overnext and overroot so that it is no longer part of the
  overload set.

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

--


More information about the Digitalmars-d-bugs mailing list