[Issue 19675] New: Just calling an empty @safe function crashes the program on Linux x86 - wrong code gen?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 13 22:52:35 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19675
Issue ID: 19675
Summary: Just calling an empty @safe function crashes the
program on Linux x86 - wrong code gen?
Product: D
Version: D2
Hardware: x86
OS: Linux
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: thomas.bockman at gmail.com
This do-nothing program crashes for me on 32-bit x86, even in debug mode:
"Program exited with code -11"
DMD 2.084.1 and LDC 1.13.0 are both affected.
Wrong code gen, I'm guessing?
/////////////////////////////
@safe:
align(8u) struct A {
long x;
}
void f(int i, A a) { }
void main() {
f(0, A.init);
}
--
More information about the Digitalmars-d-bugs
mailing list