www.digitalmars.com         C & C++   DMDScript  

D - BUG: Crashes if you forget () on func inside an if-block

reply Russ Lewis <spamhole-2001-07-16 deming-os.org> writes:
This code crashes DLI with the error "machine-i386.cpp(1360): function,
dumping core..."
In Machine_i386::testExpression, it fails because
"exp->type->toBasetype()" gives a function type.

class Foo
{
  bit Bar() { return false; }
}
int main()
{
  Foo foo = new Foo;
  if(foo.Bar)
    return 1;
  return 0;
}

--
The Villagers are Online! http://villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]
Sep 25 2002
parent "Walter" <walter digitalmars.com> writes:
Thanks for posting the bug reports. I'll take care of them. -Walter
Sep 28 2002