D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7407 - Can't implicitly convert char[][] to const(char)[][]
Summary: Can't implicitly convert char[][] to const(char)[][]
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 21:58 UTC by siegelords_abode
Modified: 2012-02-09 09:47 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description siegelords_abode 2012-01-30 21:58:12 UTC
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 yebblies 2012-01-30 22:20:42 UTC
Not a bug.  See issue 4251.
Comment 2 timon.gehr 2012-02-09 09:45:04 UTC
Not an invalid request.
Comment 3 timon.gehr 2012-02-09 09:47:00 UTC
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.