[flang-commits] [flang] [flang][semantics] add portability warning and tests for copy-in/copy-out case (PR #153263)

Andre Kuhlenschmidt via flang-commits flang-commits at lists.llvm.org
Thu Aug 14 12:50:28 PDT 2025


================
@@ -1203,6 +1203,10 @@ bool HasVectorSubscript(const Expr<SomeType> &expr) {
   return HasVectorSubscriptHelper{}(expr);
 }
 
+bool IsArraySection(const Expr<SomeType> &expr) {
+  return expr.Rank() > 0 && IsVariable(expr) && !UnwrapWholeSymbolDataRef(expr);
----------------
akuhlens wrote:

Is this a suggestion to change the name or use something like looking for a triplet instead?

https://github.com/llvm/llvm-project/pull/153263


More information about the flang-commits mailing list