www.digitalmars.com         C & C++   DMDScript  

D - concatenation bug

Dear D Developers,

The following code produces a segfault when run, when compiled by D for Linux
0.70. With smaller numbers for `c=', it runs right. I think this is a bug in the
D compiler or Phobos.

int main(char[][] _unused) {
char []a=new char[0];
uint c=200000;
while (c--) a~='x';
return 0;
}
Sep 03 2003