[Issue 248] New: Assertion failure: attrib.c 913 - version without (...) in imported module

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Jul 12 04:03:14 PDT 2006


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

d-bugmail at puremagic.com schrieb am 2006-07-10:
> http://d.puremagic.com/issues/show_bug.cgi?id=248

> ----- version_unspec1.d -----
> import version_unspec2;
> ----- version_unspec2.d -----
> version {}
> ----------
> D:\My Documents\Programming\D\Tests\bugs>dmd version_unspec1
> version_unspec2.d(1): (condition) expected following version
> Assertion failure: 'condition' on line 913 in file 'attrib.c'
>
> abnormal program termination
> ----------
>
> For some reason, the line "abnormal program termination" appears only if I run
> DMD from the command line - if I run it from TextPad, DMD hangs instead.  It
> doesn't seem to matter what follows the word "version" in the code - the
> assertion failure and APT are the same whatever else I try.
>
> The import is necessary to show the bug - compiling version_unspec_2.d directly
> correctly diagnoses the error without an ICE.

Added to DStress as
http://dstress.kuehne.cn/nocompile/v/version_37_A.d
http://dstress.kuehne.cn/nocompile/v/version_37_B.d
http://dstress.kuehne.cn/nocompile/v/version_37_C.d
http://dstress.kuehne.cn/nocompile/v/version_37_D.d
http://dstress.kuehne.cn/nocompile/v/version_37_E.d
http://dstress.kuehne.cn/nocompile/v/version_37_F.d

Thomas


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

iD8DBQFEtNoFLK5blCcjpWoRAglHAKCm9oWmfRbqxNCgdKbURXe/K7h2/wCfcqXI
V/HQhQ+Nt30glkFSBgNx9so=
=BlAV
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list