https://issues.dlang.org/show_bug.cgi?id=16739

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
Simplified test case:

----
void main()
{
    int result = 0;
    switch ("a"d)
    {
      case "\u0100"d: result = 1; break;
      case "a"d: result = 2; break;
      default: result = 3; break;
    }
    assert(result == 2); /* fails; result is 3 */
}
----

Seems to be problem with code points > 0xFF. Doesn't fail with "00FF"d instead
of "0100"d.

Also fails with wstrings. Doesn't fail with strings.

--

Reply via email to