D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21489 - Duplicated template instantiation using mixin inside alias declaration
Summary: Duplicated template instantiation using mixin inside alias declaration
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-12-19 02:29 UTC by Boris Carvajal
Modified: 2021-01-07 12:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Boris Carvajal 2020-12-19 02:29:50 UTC
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 Dlang Bot 2020-12-19 02:48:25 UTC
@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 Dlang Bot 2021-01-07 12:41:01 UTC
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