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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to