Bug 22249 – std.experimental.checkedint: Warn.onLowerBound does not compile

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-08-29T16:39:40Z
Last change time
2021-08-29T23:05:12Z
Keywords
pull
Assigned to
No Owner
Creator
Paul Backus

Comments

Comment #0 by snarwin+bugzilla — 2021-08-29T16:39:40Z
As of Phobos 2.097.2, attempting to compile any program that uses `std.experimental.checkedint.Warn.onLowerBound` fails, with the following error: --- /usr/include/dmd/phobos/std/experimental/checkedint.d(1619): Error: undefined identifier `Lhs`, did you mean alias `Rhs`? /usr/include/dmd/phobos/std/experimental/checkedint.d(1279): Error: template instance `std.experimental.checkedint.Warn.onLowerBound!(int, byte)` error instantiating --- Example program: --- import std.experimental.checkedint; byte foo(byte a, byte b) { auto c = a.checked; c += b; return c.get; } ---
Comment #1 by dlang-bot — 2021-08-29T17:02:43Z
@pbackus created dlang/phobos pull request #8221 "Fix Issue 22249 - std.experimental.checkedint: Warn.onLowerBound does…" fixing this issue: - Fix Issue 22249 - std.experimental.checkedint: Warn.onLowerBound does not compile https://github.com/dlang/phobos/pull/8221
Comment #2 by dlang-bot — 2021-08-29T23:05:12Z
dlang/phobos pull request #8221 "Fix Issue 22249 - std.experimental.checkedint: Warn.onLowerBound does…" was merged into master: - ac4850edd1e0a77ddffeca1e9d7b61a797fc9516 by Paul Backus: Fix Issue 22249 - std.experimental.checkedint: Warn.onLowerBound does not compile https://github.com/dlang/phobos/pull/8221