digitalmars.D.bugs - [Issue 21489] New: Duplicated template instantiation using mixin
- d-bugmail puremagic.com (26/26) Dec 18 2020 https://issues.dlang.org/show_bug.cgi?id=21489
https://issues.dlang.org/show_bug.cgi?id=21489 Issue ID: 21489 Summary: Duplicated template instantiation using mixin inside alias declaration Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: boris2.9 gmail.com 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!()` --
Dec 18 2020