https://d.puremagic.com/issues/show_bug.cgi?id=12292

           Summary: Template specialization ": string" passes for static
                    arrays of other types
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-03 
18:39:38 EET ---
////////// test.d //////////
void fun(T : string)(T data)
{
    string sdata = data;
}

void test()
{
    ubyte[3] sa;
    fun(sa);
}
////////////////////////////

The specialization passes, and then the assignment inside the function fails to
compile.

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

Reply via email to