← Back to index
|
Original Bugzilla link
Bug 2241 – DMD abort
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-07-24T00:28:00Z
Last change time
2015-06-09T01:20:00Z
Assigned to
bugzilla
Creator
echochamber
Comments
Comment #0
by echochamber — 2008-07-24T00:28:30Z
DMD aborts with this: ---- cut here ---- % cat dmdabort.d import std.file; string find_file(string directory) { char[] result; foreach (string path; dirEntries(directory, SpanMode.shallow)) { string fullpath = std.file.join(directory, path); // ... } return cast(string)result; } void main(string[] args) { // writefln("%s", find_file(".")); } % dmd dmdabort.d dmd: expression.c:5222: virtual Expression* DotIdExp::semantic(Scope*): Assertion `0' failed. zsh: abort dmd dmdabort.d % ---- cut here ---- Comment out the "string fullpath =" line and it compiles. DMD 2.017 on Linux.
Comment #1
by bugzilla — 2008-09-03T01:35:55Z
Fixed dmd 1.035 and 2.019