Summary: CTFE: str ~= wchar rejected if string was initialized
                    with an array literal
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2012-09-14 03:39:55 PDT ---
This was the second bug reported in bug 8601. It's completely unrelated to the
first one. A string initialized with an array literal doesn't
support ~= of a character of a larger size.

bool bug()
    string r =  ['x', 'q'];
    dchar c = '�';
    r ~= c;
    assert(r == "xq�");
    return true;

static assert(bug());

bug.d(8): Error: Cannot interpret r ~= c at compile time

I'm not entirely sure what to do with this. The problem is, after r~=c, is r a
string literal or an array literal?

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

Reply via email to