[Issue 15994] New: Trivial code compiled with dmd ends with code 11 !?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 5 07:11:45 PDT 2016
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 at puremagic.com
Reporter: christophe at 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.
--
More information about the Digitalmars-d-bugs
mailing list