Skip to content

FMS 2025.03 built with oneAPI@2025.{2,3}.1 ifx optimizes code to create a divide by zero error #2041

Description

@rickgrubin-noaa

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

Metadata

Metadata

Labels

bugSomething is not working

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions