D - BUG: Crashes if you forget () on func inside an if-block
- Russ Lewis (20/20) Sep 25 2002 This code crashes DLI with the error "machine-i386.cpp(1360): function,
- Walter (1/1) Sep 28 2002 Thanks for posting the bug reports. I'll take care of them. -Walter
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
Thanks for posting the bug reports. I'll take care of them. -Walter
Sep 28 2002








"Walter" <walter digitalmars.com>