Bug 19675 – Just calling an empty @safe function crashes the program on Linux x86 - wrong code gen?

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2019-02-13T22:52:35Z
Last change time
2022-06-07T11:55:43Z
Assigned to
No Owner
Creator
thomas.bockman

Comments

Comment #0 by thomas.bockman — 2019-02-13T22:52:35Z
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); }
Comment #1 by razvan.nitu1305 — 2019-02-21T10:25:25Z
I cannot reproduce this. Is this bug still present?
Comment #2 by maxhaton — 2022-06-07T11:55:43Z
Closing this because I can't reproduce. Please reopen with more information about your system if it actually persists.