Bug 248 – Assertion failure: attrib.c 913 - version without (...) in imported module

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-07-10T09:12:00Z
Last change time
2014-02-15T13:21:51Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
smjg

Comments

Comment #0 by smjg — 2006-07-10T09:12:49Z
----- 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.
Comment #1 by jpelcis — 2006-07-18T16:41:16Z
Fixed DMD 0.163.