Bug 13141 – array cast from string[] to immutable(char[][]) is not supported at compile time

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-16T22:46:00Z
Last change time
2014-08-22T08:04:34Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-07-16T22:46:33Z
Program: import std.algorithm; import std.array; import std.conv; immutable string[] splitterNames = [4].map!(e => e.text()).array(); Compiler output: test.d(5): Error: array cast from string[] to immutable(char[][]) is not supported at compile time Worked in v2.065.0. Introduced in https://github.com/D-Programming-Language/dmd/pull/3602.
Comment #1 by k.hara.pg — 2014-07-17T03:26:31Z
Comment #2 by github-bugzilla — 2014-07-17T05:49:29Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9a87af3bed502c19829318011fc6eabd04dc4c66 fix Issue 13141 - array cast from string[] to immutable(char[][]) is not supported at compile time https://github.com/D-Programming-Language/dmd/commit/11d22624518ce619a04be84a4c5978444bdbbc1c Merge pull request #3780 from 9rnsr/fix13141 [REG2.066a] Issue 13141 - array cast from string[] to immutable(char[][]) is not supported at compile time
Comment #3 by github-bugzilla — 2014-07-17T16:38:21Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/cad191c5e04051f928dd81cff178df1176eb4587 Merge pull request #3780 from 9rnsr/fix13141 [REG2.066a] Issue 13141 - array cast from string[] to immutable(char[][]) is not supported at compile time
Comment #4 by github-bugzilla — 2014-08-22T08:04:34Z