digitalmars.D.bugs - [Issue 8835] New: dmd: module.c:829: void Module::semantic3(): Assertion `semanticstarted == 2' failed.
- d-bugmail puremagic.com (35/35) Oct 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8835
- d-bugmail puremagic.com (12/12) Oct 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8835
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: -------
Oct 17 2012
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: -------
Oct 17 2012