www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23167] New: inaccurate diagnostic for internal tuple bound

https://issues.dlang.org/show_bug.cgi?id=23167

          Issue ID: 23167
           Summary: inaccurate diagnostic for internal tuple bound
                    violation
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com



alias Seq(A...) = A;
alias E = Seq!(int)[1]; 



 /tmp/temp_7F1A9ABD98B0.d:2:1: Error: tuple index 1 exceeds 1
1 does not exceeds 1, the diagnostic should use ">=" or "is over or equal" --
Jun 07 2022