← Back to index
|
Original Bugzilla link
Bug 21831 – Wrong deprecation message in template parameters before evaluating constraints
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-15T17:19:21Z
Last change time
2021-04-16T00:32:18Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0
by ibuclaw — 2021-04-15T17:19:21Z
deprecated struct OldStruct { } struct NewStruct { } auto foo(T)(T t) // error: struct `OldStruct` is deprecated if (!__traits(isDeprecated, T)) { return T.init; } deprecated auto foo(T)(T t) if (__traits(isDeprecated, T)) { return T.init; } deprecated unittest { auto b = foo(OldStruct()); // instantiated from here }
Comment #1
by dlang-bot — 2021-04-15T17:32:04Z
@ibuclaw created dlang/dmd pull request #12440 "fix Issue 21831 - Wrong deprecation message in template parameters before evaluating constraints" fixing this issue: - fix Issue 21831 - Wrong deprecation message in template parameters before evaluating constraints
https://github.com/dlang/dmd/pull/12440
Comment #2
by dlang-bot — 2021-04-16T00:32:18Z
dlang/dmd pull request #12440 "fix Issue 21831 - Wrong deprecation message in template parameters before evaluating constraints" was merged into master: - 52466a6deab25cf5314186b329116e4801b741de by Iain Buclaw: fix Issue 21831 - Wrong deprecation message in template parameters before evaluating constraints
https://github.com/dlang/dmd/pull/12440