Bug 21489 – Duplicated template instantiation using mixin inside alias declaration

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-12-19T02:29:50Z
Last change time
2021-01-07T12:41:01Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal

Comments

Comment #0 by boris2.9 — 2020-12-19T02:29:50Z
test.d: ------------------------- template A() {} alias a = mixin("A!()"); ------------------------- dmd -vtemplates=list-instances test.d Output: mmm.d(1): vtemplate: 2 (1 unique) instantiation(s) of template `A()` found, they are: mmm.d-mixin-3(3): vtemplate: explicit instance `A!()` mmm.d-mixin-3(3): vtemplate: explicit instance `A!()`
Comment #1 by dlang-bot — 2020-12-19T02:48:25Z
@BorisCarvajal created dlang/dmd pull request #12034 "Fix Issue 21489 - Duplicated template instantiation using mixin insid…" fixing this issue: - Fix Issue 21489 - Duplicated template instantiation using mixin inside alias declaration https://github.com/dlang/dmd/pull/12034
Comment #2 by dlang-bot — 2021-01-07T12:41:01Z
dlang/dmd pull request #12034 "Fix Issue 21489 - Duplicated template instantiation using mixin insid…" was merged into master: - 53f93790bf4e4449ac50f9a9a4959885610c0c33 by Boris Carvajal: Fix Issue 21489 - Duplicated template instantiation using mixin inside alias declaration https://github.com/dlang/dmd/pull/12034