[Issue 15919] New: Undetected spell miss in ndslice.selection.reshape()

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 12 21:56:44 PDT 2016


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

          Issue ID: 15919
           Summary: Undetected spell miss in ndslice.selection.reshape()
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp

I have no idea why this gags its compile error.
Because I found this while testing my name checker,
I'm scared to fix this.


std/ndslice/selection.d(795): in function reshape()

    foreach (i; Iota!(ret.N, ret.PureN))
    {
        ret._lengths[i] = slice._lengths[i + slcie.N - ret.N]; // wrong slcie
        ret._strides[i] = slice._strides[i + slcie.N - ret.N]; // wrong slcie
    }

--


More information about the Digitalmars-d-bugs mailing list