www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



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