digitalmars.D.bugs - wchar[] concatenation bug (dmd 0.131 win32)
- zwang (6/6) Sep 14 2005 import std.stdio;
- Derek Parnell (20/26) Sep 14 2005 Here is my spin ....
- =?ISO-8859-1?Q?Thomas_K=FChne?= (12/18) Sep 16 2005 -----BEGIN PGP SIGNED MESSAGE-----
import std.stdio; void main(){ const wchar[] S = "bug"w; writefln(S ~ "s"w); //the output is messed up. assert(0); //more surprisingly, this line is never called. }
Sep 14 2005
On Thu, 15 Sep 2005 11:13:25 +0800, zwang wrote:import std.stdio; void main(){ const wchar[] S = "bug"w; writefln(S ~ "s"w); //the output is messed up. assert(0); //more surprisingly, this line is never called. }Here is my spin .... import std.stdio; void main(){ debug(CONST) { const wchar[] S = "bug"w; // Doesn't work! } else { wchar[] S = "bug"w; // Works! } writefln("%s", S ~ "s"w); assert(0); // Always called and aborts accordingly. } -- Derek (skype: derek.j.parnell) Melbourne, Australia 15/09/2005 1:43:09 PM
Sep 14 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 zwang schrieb:import std.stdio; void main(){ const wchar[] S = "bug"w; writefln(S ~ "s"w); //the output is messed up. assert(0); //more surprisingly, this line is never called. }Added to DStress as http://dstress.kuehne.cn/norun/opCat_16_A.d http://dstress.kuehne.cn/norun/opCat_16_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDKwDU3w+/yD4P9tIRArvgAKCfZTthueKyetf+z+I41DacPjnsbQCfX4Lx 1G6EwPNqJTeXFfVfqfZ/Qak= =Cf/n -----END PGP SIGNATURE-----
Sep 16 2005