[flang-commits] [flang] [flang] Implement CHDIR intrinsic (PR #124280)
via flang-commits
flang-commits at lists.llvm.org
Fri Jan 24 08:49:17 PST 2025
================
@@ -1403,6 +1403,11 @@ static const IntrinsicInterface intrinsicSubroutine[]{
{"stat", AnyInt, Rank::scalar, Optionality::optional,
common::Intent::Out}},
{}, Rank::elemental, IntrinsicClass::atomicSubroutine},
+ {"chdir",
+ {{"dir", AnyChar, Rank::anyOrAssumedRank},
----------------
jeanPerier wrote:
Why `anyOrAssumedRank`, is it allowed to pass arrays and assumed-rank to `chdir`?
`Rank::scalar` seems more appropriate, unless some existing programs use CHDIR with an array argument and relying on sequence association.
https://github.com/llvm/llvm-project/pull/124280
More information about the flang-commits
mailing list