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

Ali Cehreli <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Ali Cehreli <[email protected]> ---
I think the foreach variable type must be dchar. The following program
reproduces the issue:

void test(char[] a) {
  foreach (dchar c; a) {
  }
}

void main() {
  char[] a = "\xf0\x90\x28\xbc".dup;
  test(a);
}

--

Reply via email to