September 11 [Issue 24761] New: Access violation when inlining for 32 bit target. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24761 Issue ID: 24761 Summary: Access violation when inlining for 32 bit target. Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: Bastiaan@Veelo.net ```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. -- |
Copyright © 1999-2021 by the D Language Foundation