dmd crash help

Don nospam at nospam.com
Fri Feb 5 21:57:57 PST 2010


Don wrote:
> strtr wrote:
>> 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.
> 
> Bugzilla 3769. Very nasty.
And it's fixed in svn. Will be in the next release.


More information about the Digitalmars-d-learn mailing list