Summary: stray e2ir: in casting error message
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P4
         Component: DMD

--- Comment #0 from Michael Parrott <> 2010-10-24 
15:19:54 PDT ---
void main()
    char c = cast(int)" ";


stringtocharcast.d(3): Error: e2ir: cannot cast " " of type char[1u] to type

Since that is the only error message I could find with e2ir: in front of it,
I'll assume it's unintentional. The error message occurs on line 3901 of e2ir.c
in the dmd 1.064 source.

            if (fty == tty)
                goto Lpaint;
            //printf("fty = %d, tty = %d\n", fty, tty);
            error("e2ir: cannot cast %s of type %s to type %s", e1->toChars(),
e1->type->toChars(), t->toChars());
            goto Lzero;

Not sure if this is in D2 as well.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to