[Issue 24761] New: Access violation when inlining for 32 bit target.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 11 11:24:51 UTC 2024
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 at puremagic.com
Reporter: Bastiaan at 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.
--
More information about the Digitalmars-d-bugs
mailing list