Description
For spack-stack@2.x / FMS@2025.3 (see configs/common/packages.yaml), ifx will optimize away a check for dividing by zero.
To Reproduce
See the reproducer code / FMS issue.
Expected behavior
ifort / ifx does not optimize away checks for division by zero.
System, compiler, code, ...
Additional context
This is not a bug with spack / spack-stack per se, noting it here for the sake of completeness.
Note: this also occurs with ifort@202{3,4}.x
Description
For
spack-stack@2.x/FMS@2025.3(see configs/common/packages.yaml),ifxwill optimize away a check for dividing by zero.To Reproduce
See the reproducer code / FMS issue.
Expected behavior
ifort / ifx does not optimize away checks for division by zero.
System, compiler, code, ...
Additional context
This is not a bug with
spack/spack-stackper se, noting it here for the sake of completeness.Note: this also occurs with ifort@202{3,4}.x