Bug 21149 – templatized alias instances are not counted with -vtemplates

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-12T10:51:09Z
Last change time
2024-12-13T19:10:56Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
basile-z
Moved to GitHub: dmd#17980 →

Comments

Comment #0 by b2.temp — 2020-08-12T10:51:09Z
as noticed by Bordlow (https://github.com/dlang/dmd/pull/11463#issuecomment-669936336) compiles with - vtemplates --- alias X(T) = T; alias Y = X!(int); --- > 1 0 X(T) should be > 1 1 X(T)
Comment #1 by b2.temp — 2020-08-12T11:24:14Z
this is caused by special semantics function - aliasInstanceSemantic() - aliasSeqInstanceSemantic() (AliasSeq reports are wrong too) I'm not sure if this is a bug because since there's a special processing for them shouldn't be excluded of the report ?
Comment #2 by dlang-bot — 2020-08-12T11:30:33Z
@NilsLankila created dlang/dmd pull request #11560 "fix issue 21149 - exclude templatized alias and aliasseq from -vtempl…" fixing this issue: - fix issue 21149 - exclude templatized alias and aliasseq from -vtemplates reports Because their semantic is special, that doesn't follow the standard path. https://github.com/dlang/dmd/pull/11560
Comment #3 by robert.schadek — 2024-12-13T19:10:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17980 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB