[dmd-beta] dmd 1.063 and 2.048 beta

Fawzi Mohamed fawzi at gmx.ch
Mon Aug 9 15:54:08 PDT 2010


On 9-ago-10, at 23:44, Walter Bright wrote:

> changeset 609

now the compiler seems to work well for me, it passes all tests...

Thanks
Fawzi
>
> Walter Bright wrote:
>> It's the negass. Working on a fix.
>>
>> Don Clugston wrote:
>>> Confirmed, that code gives a segfault on D1 Windows too. Works OK  
>>> with D2.
>>>
>>> On 9 August 2010 12:46, Fawzi Mohamed <fawzi at gmx.ch> wrote:
>>>
>>>> Thanks for the release, sorry to bring a bad news, but I still  
>>>> have a bus
>>>> error (as with the previous beta) when compiling  
>>>> blip.parallel.smp.SmpModels
>>>> with -O.
>>>>
>>>> I have reduced it to
>>>> {{{
>>>> module bug;
>>>>
>>>> enum TaskStatus:int{
>>>>   Building=-1,
>>>> }
>>>>
>>>> /// conversion str -> TaskStatus
>>>> TaskStatus taskStatusFromStr(char[] s){
>>>>   char[] t="TaskStatus";
>>>>   if (s.length>t.length && s[0..t.length]==t){
>>>>       long res=0;
>>>>       if (s[t.length]=='-') res= -res;
>>>>       return cast(TaskStatus)cast(int)res;
>>>>   }
>>>>   assert(0);
>>>> }
>>>> }}}
>>>>
>>>> with -O, and keeing something (so that res is not known at  
>>>> compile time) the
>>>> cast seems to trigger an error in the compiler.





More information about the dmd-beta mailing list