Bug 23826 – Deprecated type member passed to template doesn't warn

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-04-05T07:41:56Z
Last change time
2023-04-07T12:50:13Z
Keywords
industry, pull
Assigned to
No Owner
Creator
FeepingCreature

Comments

Comment #0 by default_357-line — 2023-04-05T07:41:56Z
``` alias Alias(alias A) = A; class S { deprecated alias value = Alias!5; } enum identity(alias A) = A; void main() { auto a = identity!(S.value); } ``` No deprecation message.
Comment #1 by dlang-bot — 2023-04-05T07:49:50Z
@FeepingCreature created dlang/dmd pull request #15078 "Fix issue 23826: Check for deprecation when passing type member as template argument." fixing this issue: - Fix issue 23826: Check for deprecation when passing type member as template argument. https://github.com/dlang/dmd/pull/15078
Comment #2 by dlang-bot — 2023-04-07T12:50:13Z
dlang/dmd pull request #15078 "Fix issue 23826: Check for deprecation when passing type member as template argument." was merged into master: - abf69b73d649e801c14ea00567a9081e1ec9f140 by Mathis Beer: Fix issue 23826: Check for deprecation when passing type member as template argument. https://github.com/dlang/dmd/pull/15078