[dmd-beta] dmd 2.053 beta (Stack Overflow)
Nick Sabalausky
semitwist at gmail.com
Sat May 7 19:20:48 PDT 2011
Ok, here's a minimal test case:
string[] foo(string[] a)
{
a[0] = a[0][0..$];
return a;
}
enum var = foo([""]);
> dmd test.d
Stack overflow
From: "Walter Bright" <walter at digitalmars.com>
> To narrow it down, start with reducing the number of modules passed to the
> unittest command.
>
> On 5/7/2011 1:59 AM, Nick Sabalausky wrote:
>> I'm getting a stack overflow with the 2.053 beta (Windows). This one's
>> probably going to be a PITA to narrow down, if even possible, but here's
>> what I know so far before trying to narrow anything:
>>
>> On the current trunk on SemiTwist D Tool (revision 220):
>> http://www.dsource.org/projects/semitwist/browser/trunk
>> svn co -r 220 http://svn.dsource.org/projects/semitwist/trunk
>> SemiTwistDTools
>>
>> Building the unittest app will cause DMD to get a Stack Overflow in this
>> new beta (works fine in 2.052). The cmd line sent to DMD is this:
>>
>> dmd -debug -g -unittest -wi -debug=SemiTwistDLib_unittest -Isrc -of"bin\semitwist-unittests-debug.exe"
>> -I"src\semitwist\apps\tests\unittests"
>> "src\semitwist\apps\tests\unittests\main.d" "src\semitwist\util\text.d"
>> "src\semitwist\cmdlineparser.d" "src\semitwist\util\unittests.d"
>> "src\semitwist\treeout.d" "src\semitwist\cmd\all.d"
>> "src\semitwist\util\io.d" "src\semitwist\cmd\plain.d"
>> "src\semitwist\util\os.d" "src\semitwist\util\ver.d"
>> "src\semitwist\util\all.d" "D:\DevTool\dmd\bin\..\src\phobos\crc32.d"
>> "src\semitwist\util\mixins.d" "src\semitwist\util\array.d"
>> "src\semitwist\util\functional.d" "src\semitwist\util\ctfe.d"
>> "src\semitwist\util\process.d" "src\semitwist\refbox.d"
>> "src\semitwist\util\container.d" "src\semitwist\util\reflect.d"
>>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
More information about the dmd-beta
mailing list