Summary: char[] chars = ['�','�','�']; should not compile
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrei Alexandrescu <> 2011-11-22 
09:13:42 PST ---
    char[] chars = ['�','�','�'];
    assert(chars == "���");

The assertion fails for the obvious reason there's no room in chars for the
multibyte characters. The initialization should not compile because it attempts
to truncate wide characters into meaningless bytes.

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

Reply via email to