digitalmars.D.bugs - [Issue 15994] New: Trivial code compiled with dmd ends with code 11 !?
- via Digitalmars-d-bugs (40/40) May 05 2016 https://issues.dlang.org/show_bug.cgi?id=15994
https://issues.dlang.org/show_bug.cgi?id=15994 Issue ID: 15994 Summary: Trivial code compiled with dmd ends with code 11 !? Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: christophe meessen.net Using DMD64 D Compiler v2.071.0 Trivial code is as follow ---- import std.stdio; class B { int n = 0; void foo() { n++; } } B b; void f() { b.foo(); } void main() { f(); } ---- Output is : Program exited with code -11 The code is compiled with default parameters of a freshly created dub project and executed with dub run. I implemented this useless code because I wanted to benchmark f(). The outcome was unexpected. --
May 05 2016