www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=248

           Summary: Assertion failure: attrib.c 913 - version without (...)
                    in imported module
           Product: D
           Version: 0.162
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: smjg iname.com


----- 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.


-- 
Jul 10 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail 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-----
Jul 12 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=248


jpelcis gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 0.163.


-- 
Jul 18 2006