D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15919 - [ndslice] Undetected spell miss in selection.reshape()
Summary: [ndslice] Undetected spell miss in selection.reshape()
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: Илья Ярошенко
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-13 04:56 UTC by jiki
Modified: 2016-04-18 15:43 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jiki 2016-04-13 04:56:44 UTC
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
    }
Comment 1 Seb 2016-04-13 08:28:42 UTC
Development for Ndslice happens at mir.dlang.io - you probably want to open your bug there ;-)
Comment 2 github-bugzilla 2016-04-16 21:01:03 UTC
Commit pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/66c019a472e5c81f4d4252c96439f6f94dd75e8f
Merge pull request #4203 from 9il/Issue15919

Trivial. fix Issue 15919
Comment 3 Steven Schveighoffer 2016-04-18 15:43:47 UTC
Not sure why this didn't auto-close.