[Issue 7514] New: Dynamic array to fixed size array cast error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 15 18:32:15 PST 2012


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

           Summary: Dynamic array to fixed size array cast error message
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-02-15 18:32:14 PST ---
D2 code:


void main() {
    char[] s = "ABC".dup;
    auto a = cast(char[3])s;
}


I think the error message contains "e2ir: " by mistake, DMD 2.058:

test.d(3): Error: e2ir: cannot cast s of type char[] to type char[3u]

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