October 17, 2012 [Issue 8835] New: dmd: module.c:829: void Module::semantic3(): Assertion `semanticstarted == 2' failed. | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: jens.k.mueller@gmx.de --- Comment #0 from jens.k.mueller@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: ------- |
October 17, 2012 [Issue 8835] dmd: module.c:829: void Module::semantic3(): Assertion `semanticstarted == 2' failed. | ||||
---|---|---|---|---|
| ||||
Posted in reply to jens.k.mueller@gmx.de | http://d.puremagic.com/issues/show_bug.cgi?id=8835 kekeniro2@yahoo.co.jp changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kekeniro2@yahoo.co.jp Resolution| |DUPLICATE --- Comment #1 from kekeniro2@yahoo.co.jp 2012-10-17 11:07:57 PDT --- *** This issue has been marked as a duplicate of issue 8586 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation