Don Wrote: > Excellent! I can reproduce it. > The D2 version of this code (char[] text = `Hi`.dup;) segfaults in > Expression::arraySyntaxCopy() in expression.c, with evidence of memory > > corruption. The D1 version does *not* segfault there. In fact the code > compiles with the debug version of DMD1! I'd love there to be a built debug version in the zip.
> I think the array literal isn't getting initialized properly. What is up with the specific length of the enum? If you remove one element it compiles just fine. > > > And it's a regression, introduced in DMD1.046. It worked in 1.045. 1.048 wasn't far enough back :)