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

Bug with NON_RECURSIVE and IMPURE

OP1
New Contributor II
191 Views

The following code does not build with neither ifx 2024.1.0 nor ifort 2021.12.0. The respective order of NON_RECURSIVE and IMPURE seems to matter.

MODULE M
CONTAINS
    NON_RECURSIVE IMPURE SUBROUTINE S  ! This compiles
    END SUBROUTINE S
    IMPURE NON_RECURSIVE SUBROUTINE T  ! This does not compile.
    END SUBROUTINE T
END MODULE M
0 Kudos
2 Replies
Ron_Green
Moderator
179 Views

Indeed a bug.  Thanks @OP1 for finding this.  I'll open a bug report.  Good catch, thank you!

0 Kudos
Ron_Green
Moderator
167 Views

Bug ID is CMPLRLLVM-59283


0 Kudos
Reply