← Back to index
|
Original Bugzilla link
Bug 24761 – Access violation when inlining for 32 bit target.
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2024-09-11T11:24:51Z
Last change time
2024-09-11T13:44:57Z
Assigned to
No Owner
Creator
Bastiaan Veelo
Comments
Comment #0
by Bastiaan — 2024-09-11T11:24:51Z
```d float macht(float grondtal) { import std; grondtal = abs(grondtal); if (grondtal) exp(grondtal); return 1.0f; } void delft(float volume, float planeer_oppervlak, ref float totaal_weerstand) { float[] reken_matrix_1; totaal_weerstand = macht(volume) + macht(volume) + macht(planeer_oppervlak / macht(volume)) + macht(volume) + 1.0f / macht(volume) + reken_matrix_1[0] * (planeer_oppervlak / macht(volume)); } ``` On Windows dmd v2.109.1 exits with error code -1073741819 (access violation) when compiling the code above with options -inline -m32. No output or error messages are produced.
Comment #1
by Bastiaan — 2024-09-11T13:44:57Z
The problem is not reproducible using current nightly build, and seems to have been fixed.