[Issue 2912] New: Incorrect array append for mixed character sizes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 29 12:48:45 PDT 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 at digitalmars.com
ReportedBy: andrei at metalanguage.com
void main() {
char[] a;
wstring b = "abc"w;
a ~= b;
writeln(a.length);
}
The program prints "6". It should print "3".
--
More information about the Digitalmars-d-bugs
mailing list