[Issue 7407] New: Can't implicitly convert char[][] to const(char)[][]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 30 21:58:12 PST 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 at puremagic.com
        ReportedBy: siegelords_abode at yahoo.com


--- Comment #0 from siegelords_abode at 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: -------


More information about the Digitalmars-d-bugs mailing list