[Issue 9747] New: IFTI argument deduction fails for committed string literals which are implicitly converted to a static array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 18 07:24:43 PDT 2013


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

           Summary: IFTI argument deduction fails for committed string
                    literals which are implicitly converted to a static
                    array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-03-18 07:24:42 PDT ---
cat > bug.d << CODE
void fooA(T)(T[4]) {}
void fooC(size_t dim)(char[dim]) {}
void fooW(size_t dim)(wchar[dim]) {}
void fooD(size_t dim)(dchar[dim]) {}

void bar()
{
    fooA("abcd"c);
    fooA("abcd"w);
    fooA("abcd"d);
    fooC("abcd"c);
    fooW("abcd"w);
    fooD("abcd"d);
}
CODE

dmd -c bug

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