[Issue 7968] New: Failing implicit cast, new in 2.059

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 22 11:23:21 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7968

           Summary: Failing implicit cast, new in 2.059
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 2012-04-22 11:24:21 PDT ---
This just appeared in 2.059:

void failCast(const(char)*[] arg)
{
}

void test(char** ppStr, uint numStrings)
{
    failCast(ppStr[0..numStrings]);
}


SQLiteDB.d(21): Error: function demu.tools.sqlitedb.failCall (const(char)*[]
arg) is not callable using argument types (char*[])
SQLiteDB.d(21): Error: cannot implicitly convert expression
(ppStr[0u..numStrings]) of type char*[] to const(char)*[]

The chaps on IRC seemed to think this was a bug and I should report it.

-- 
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