Summary: Invalid string mixin causes assertion failure.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from yebblies <> 2010-06-25 02:10:09 PDT ---
The following code on dmd2.047 causes the error:

"Assertion failure: 'se->sz == 1' on line 3005 in file 'expression.c'"

The string passed in is invalid due to bug 4389.

Test case:

import std.stdio;
import std.range;

string get()
    auto ds = "int x;"d;
    // build "int x;" from dchars

    string s;
    foreach(c; ds)
        s ~= c;

    return s;

void main()

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

Reply via email to