[Issue 20758] __traits(getAttributes) as template argument results in broken template instances
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 23 21:00:47 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20758
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@NilsLankila created dlang/dmd pull request #11183 "fix issue 20758 -
__traits(getAttributes) as template argument result…" fixing this issue:
- fix issue 20758 - __traits(getAttributes) as template argument results in
broken template instances
Using a `TupleExp` obtained by a `__traits` had for effect to instantiate a
template with a `VarExp` that was never translated to a D symbol.
The fix is to do the translation only when the var is for a function, which
means that the intention is not to instantiate using the function *result* but
well the function itself.
https://github.com/dlang/dmd/pull/11183
--
More information about the Digitalmars-d-bugs
mailing list