Confirmed, that code gives a segfault on D1 Windows too. Works OK with D2.

On 9 August 2010 12:46, Fawzi Mohamed <[email protected]> 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.
>
> 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
>> [email protected]
>> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
> _______________________________________________
> dmd-beta mailing list
> [email protected]
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to