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 <[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.



_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to