Bug 7407 – Can't implicitly convert char[][] to const(char)[][]
Status
RESOLVED
Resolution
INVALID
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-30T21:58:00Z
Last change time
2012-02-09T09:47:00Z
Assigned to
nobody
Creator
siegelords_abode
Comments
Comment #0 by siegelords_abode — 2012-01-30T21:58:12Z
Compiling this with the latest DMD (fca8ba6f445fe99b55a6953722815c16d68344fa):
void main()
{
char[][] a;
const(char)[][] b = a;
}
Yields this error:
test.d(4): Error: cannot implicitly convert expression (a) of type char[][] to const(char)[][]
This used to compile fine in DMD 2.057.
Comment #1 by yebblies — 2012-01-30T22:20:42Z
Not a bug. See issue 4251.
Comment #2 by timon.gehr — 2012-02-09T09:45:04Z
Not an invalid request.
Comment #3 by timon.gehr — 2012-02-09T09:47:00Z
Sorry for the noise. The compile error in Tango that motivates this bug report could be type checked by implementing the enhancement in issue 7208, but the example code given here is obviously invalid.