[flang-commits] [flang] [flang] Add support of THIS_IMAGE and NUM_IMAGES with PRIF (PR #154081)

Steve Scalpone via flang-commits flang-commits at lists.llvm.org
Thu Aug 21 22:01:44 PDT 2025


================
@@ -563,6 +567,15 @@ struct IntrinsicLibrary {
 
   void setResultMustBeFreed() { resultMustBeFreed = true; }
 
+  // Check support of coarray features
+  void checkCoarrayEnabled() {
+    if (converter &&
+        !converter->getFoldingContext().languageFeatures().IsEnabled(
+            Fortran::common::LanguageFeature::Coarray))
+      fir::emitFatalError(loc, "Coarrays disabled, use '-fcoarray' to enable.",
----------------
sscalpone wrote:

If you could, please change this to something like:

`not yet implemented: coarrays are experimental, use '-fcoarray' to enable
`
to keep the "not yet implemented" pattern in place.  Thank you!

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


More information about the flang-commits mailing list