April 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2912

           Summary: Incorrect array append for mixed character sizes
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: andrei@metalanguage.com


void main() {
    char[] a;
    wstring b = "abc"w;
    a ~= b;
    writeln(a.length);
}

The program prints "6". It should print "3".


-- 

April 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2912


dsimcha@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #1 from dsimcha@yahoo.com  2009-04-29 15:19 -------
Second one today.  I think this is yet another manifestation of bug 2892.

*** This bug has been marked as a duplicate of 2892 ***


--