digitalmars.D.bugs - [Issue 2241] New: DMD abort
- d-bugmail puremagic.com (38/38) Jul 23 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2241
- d-bugmail puremagic.com (9/9) Sep 02 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2241
http://d.puremagic.com/issues/show_bug.cgi?id=2241 Summary: DMD abort Product: D Version: 2.017 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: echochamber gmail.com 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. --
Jul 23 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2241 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed dmd 1.035 and 2.019 --
Sep 02 2008