[dmd-beta] dmd 1.063 and 2.048 beta

Fawzi Mohamed fawzi at gmx.ch
Mon Aug 9 03:46:26 PDT 2010


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.

Fawzi
On 9-ago-10, at 08:19, Walter Bright wrote:

>
> http://ftp.digitalmars.com/dmd1beta.zip
> http://ftp.digitalmars.com/dmd2beta.zip
> _______________________________________________
> 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