February 13, 2019 [Issue 19675] New: Just calling an empty @safe function crashes the program on Linux x86 - wrong code gen? | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: thomas.bockman@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); } -- |
Copyright © 1999-2021 by the D Language Foundation