September 03, 2003 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; } |
Copyright © 1999-2021 by the D Language Foundation