[Bug 90] New: local object.d overrides real object.d causing crash

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Apr 8 12:21:30 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-04-07:
> http://d.puremagic.com/bugzilla/show_bug.cgi?id=90
> [object.d] (an empty file)
>
> [bug.d]
> class A {}
> void main() {}
>
> C:\>dmd bug.d
> bug.d(1): identifier 'Object' is not defined
> bug.d(1): Object is used as a type
> Assertion failure: 'b->type->ty == Tclass' on line 286 in file 'class.c'
>
> abnormal program termination
>
> The presence of an object.d file in the local directory overrides the real and
> required object.d in the dmd directory. This results in weird errors and a
> compiler crash.

Added to DStress as
http://dstress.kuehne.cn/complex/object_02

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEOBqr3w+/yD4P9tIRAhsGAKCTMWrTuMpR4Ru6JDycxDApPkNBXwCgksBU
LAySEK8qdbU5jKnJDhhpBA4=
=B0Nt
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list