July 19, 2020 [Issue 21050] __traits(getOverloads) for templates returns incorrect symbol for the first overload | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21050 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- @rmanthorpe created dlang/dmd pull request #11431 "Fix Issue 21050 - __traits(getOverloads) for templates returns incorr…" fixing this issue: - Fix Issue 21050 - __traits(getOverloads) for templates returns incorrect symbol for the first overload https://github.com/dlang/dmd/pull/11431 -- | ||||
July 29, 2020 [Issue 21050] __traits(getOverloads) for templates returns incorrect symbol for the first overload | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21050 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <dlang-bot@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 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply