[Issue 22310] Template instantiation failures can be *very* costly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 15 14:48:47 UTC 2021


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

--- Comment #1 from kinke <kinke at gmx.net> ---
(In reply to kinke from comment #0)
> Note that failing to instantiate BooleanTypeOf!T for non-bool T also seems
> to lead to all successfully instantiated templates in there not to be cached
> (AliasThisTypeOf!T, OriginalType!T).

Scratch that, OriginalType!T *is* cached, only AliasThisTypeOf!T isn't,
possibly because of the speculative instantiation inside `static if (is(...))`.

--


More information about the Digitalmars-d-bugs mailing list