Thread overview
[Issue 7407] New: Can't implicitly convert char[][] to const(char)[][]
Jan 31, 2012
yebblies
Feb 09, 2012
timon.gehr@gmx.ch
Feb 09, 2012
timon.gehr@gmx.ch
January 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7407

           Summary: Can't implicitly convert char[][] to const(char)[][]
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: siegelords_abode@yahoo.com


--- Comment #0 from siegelords_abode@yahoo.com 2012-01-30 21:58:12 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7407


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |INVALID


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-01-31 17:20:42 EST ---
Not a bug.  See issue 4251.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 09, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7407


timon.gehr@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |timon.gehr@gmx.ch
         Resolution|INVALID                     |


--- Comment #2 from timon.gehr@gmx.ch 2012-02-09 09:45:04 PST ---
Not an invalid request.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 09, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7407


timon.gehr@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


--- Comment #3 from timon.gehr@gmx.ch 2012-02-09 09:47:00 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------