← Back to index
|
Original Bugzilla link
Bug 21830 – Wrong deprecation message when non-deprecated template in static condition
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-15T16:48:58Z
Last change time
2021-04-16T00:33:15Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0
by ibuclaw — 2021-04-15T16:48:58Z
deprecated struct OldStruct { } struct NewStruct { } static if (1) { auto getInit(T)(T t) if (is(T == NewStruct)) { return T.init; } } deprecated("Using deprecated overload") auto getInit(T)(T t) if (is(T == OldStruct)) { return T.init; } unittest { auto b = getInit(NewStruct()); // error here about using getInit!OldStruct }
Comment #1
by dlang-bot — 2021-04-15T17:40:39Z
@ibuclaw created dlang/dmd pull request #12441 "fix Issue 21830 - Wrong deprecation message when non-deprecated template in static condition" fixing this issue: - fix Issue 21830 - Wrong deprecation message when non-deprecated template in static condition
https://github.com/dlang/dmd/pull/12441
Comment #2
by dlang-bot — 2021-04-16T00:33:15Z
dlang/dmd pull request #12441 "fix Issue 21830 - Wrong deprecation message when non-deprecated template in static condition" was merged into master: - 5636fb3b592c0b85a109b2737014598bf5e448af by Iain Buclaw: fix Issue 21830 - Wrong deprecation message when non-deprecated template in static condition
https://github.com/dlang/dmd/pull/12441