[flang-commits] [flang] [flang] Catch calls to impure intrinsics from PURE subprograms (PR #160947)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Sun Sep 28 10:38:33 PDT 2025
================
@@ -1650,7 +1650,7 @@ static const IntrinsicInterface intrinsicSubroutine[]{
common::Intent::Out},
{"status", TypePattern{IntType, KindCode::greaterOrEqualToKind, 4},
Rank::scalar, Optionality::optional, common::Intent::Out}},
- {}, Rank::elemental, IntrinsicClass::impureSubroutine},
+ {}, Rank::elemental, IntrinsicClass::pureSubroutine},
----------------
eugeneepshteyn wrote:
What if user calls `chdir()`? The results could be different between the calls.
https://github.com/llvm/llvm-project/pull/160947
More information about the flang-commits
mailing list