September 25, 2002 BUG: Crashes if you forget () on func inside an if-block | ||||
---|---|---|---|---|
| ||||
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))) ] |
September 29, 2002 Re: Crashes if you forget () on func inside an if-block | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russ Lewis | Thanks for posting the bug reports. I'll take care of them. -Walter |
Copyright © 1999-2021 by the D Language Foundation