Bug 23167 – inaccurate diagnostic for internal tuple bound violation

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-06-07T09:05:19Z
Last change time
2022-06-22T01:15:19Z
Keywords
bootcamp, diagnostic, pull
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2022-06-07T09:05:19Z
## test case alias Seq(A...) = A; alias E = Seq!(int)[1]; ## output > /tmp/temp_7F1A9ABD98B0.d:2:1: Error: tuple index 1 exceeds 1 ## notes 1 does not exceeds 1, the diagnostic should use ">=" or "is over or equal"
Comment #1 by b2.temp — 2022-06-07T09:50:04Z
smthg like "index `%d` is over or equal to the element count `%d`" would be better
Comment #2 by dlang-bot — 2022-06-21T15:30:59Z
@dkorpel created dlang/dmd pull request #14235 "Fix 23167 - inaccurate diagnostic for internal tuple bound violation" fixing this issue: - Fix 23167 - inaccurate diagnostic for internal tuple bound violation https://github.com/dlang/dmd/pull/14235
Comment #3 by dlang-bot — 2022-06-22T01:15:19Z
dlang/dmd pull request #14235 "Fix 23167 - inaccurate diagnostic for internal tuple bound violation" was merged into master: - 3c1931ce8446724d370f3516da2d7c2cbbb70e3a by Dennis Korpel: Fix 23167 - inaccurate diagnostic for internal tuple bound violation https://github.com/dlang/dmd/pull/14235