Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 Discussions

ICE with expressions used as argument to a collective intrinsic subroutine.

OP1
New Contributor III
1,019 Views

The following code (compiled with ifx 2025.1.0) leads to an ICE:

CALL CO_SUM(ABS(I))
END

In all likelihood the same ICE exists with other collective intrinsic subroutines.

0 Kudos
1 Reply
JFH
New Contributor I
935 Views

That program is not valid Fortran. Attempting to compile it with gfortran revealed its bug:

```

2 | CALL CO_SUM(ABS(I))
   |                           1
Error: ‘a’ argument of ‘co_sum’ intrinsic at (1) must be a variable

```

Of course ifx should have given a better error

message.

0 Kudos
Reply