[Issue 8835] New: dmd: module.c:829: void Module::semantic3(): Assertion `semanticstarted == 2' failed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 17 06:31:17 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8835
Summary: dmd: module.c:829: void Module::semantic3(): Assertion
`semanticstarted == 2' failed.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jens.k.mueller at gmx.de
--- Comment #0 from jens.k.mueller at gmx.de 2012-10-17 06:31:13 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list