Comment #0 by jens.k.mueller — 2012-10-17T06:31:13Z
The following code
import std.stdio;
void main()
{
import std.file;
}
crashes with
dmd: module.c:829: void Module::semantic3(): Assertion `semanticstarted == 2' failed.
when compiling with
-release -noboundscheck -inline
This is Linux.
$ dmd | head -1
DMD64 D Compiler v2.060
I'm sorry for not having a better test case.
As a work around. Moving import outside main fixes the problem. Alternatively, you can avoid it by removing either -release, -noboundscheck, or -inline when compiling.
Comment #1 by kekeniro2 — 2012-10-17T11:07:57Z
*** This issue has been marked as a duplicate of issue 8586 ***