← Back to index
|
Original Bugzilla link
Bug 10104 – std.algorithm.group of a const/immutable array
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-05-17T05:08:00Z
Last change time
2015-02-18T03:40:44Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2013-05-17T05:08:04Z
import std.algorithm: group; void main() { const a = [1, 1, 2, 2]; a.group; } DMD 2.063beta2: ...\dmd2\src\phobos\std\algorithm.d(3326): Error: cannot modify struct this._current Tuple!(const(int), uint) with immutable members temp.d(4): Error: template instance std.algorithm.group!("a == b", const(int)[]) error instantiating ...\dmd2\src\phobos\std\algorithm.d(3358): Error: cannot modify struct ret._current Tuple!(const(int), uint) with immutable members
Comment #1
by peter.alexander.au — 2014-12-14T16:35:43Z
*** Issue 13857 has been marked as a duplicate of this issue. ***
Comment #2
by peter.alexander.au — 2014-12-14T16:36:46Z
*** Issue 13162 has been marked as a duplicate of this issue. ***
Comment #3
by peter.alexander.au — 2014-12-14T17:07:29Z
https://github.com/D-Programming-Language/phobos/pull/2798
Comment #4
by github-bugzilla — 2014-12-17T16:08:03Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/d1ffb938b549e454038a210b7799a732751c468d
Fix Issue 10104 - Group of array of const/immutable
https://github.com/D-Programming-Language/phobos/commit/a67689b7ec7dbc2ba1c0451cad131cc018358a28
Merge pull request #2798 from Poita/Issue10104 Fix Issue 10104 - Group of array of const/immutable
Comment #5
by github-bugzilla — 2015-02-18T03:40:44Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/d1ffb938b549e454038a210b7799a732751c468d
Fix Issue 10104 - Group of array of const/immutable
https://github.com/D-Programming-Language/phobos/commit/a67689b7ec7dbc2ba1c0451cad131cc018358a28
Merge pull request #2798 from Poita/Issue10104