[flang-commits] [flang] [flang][Lower] Add lowering to SYNC ALL, SYNC MEMORY and SYNC IMAGES to PRIF (PR #154166)

Katherine Rasmussen via flang-commits flang-commits at lists.llvm.org
Wed Aug 27 13:54:31 PDT 2025


================
@@ -1119,6 +1119,15 @@ class FirConverter : public Fortran::lower::AbstractConverter {
     return currentFunctionUnit;
   }
 
+  void checkCoarrayEnabled() override final {
+    if (!getFoldingContext().languageFeatures().IsEnabled(
+            Fortran::common::LanguageFeature::Coarray))
+      fir::emitFatalError(
+          getCurrentLocation(),
+          "Multi-image features are disabled, use '-fcoarray' to enable.",
----------------
ktras wrote:

```suggestion
          "Not yet implemented: Multi-image features are experimental and are disabled by default, use '-fcoarray' to enable.",
```

After PR #154081 was merged, @sscalpone commented on the PR asking for changes to the error that in this PR has now been moved to this line. I have added the above suggestion based on the suggested wording from @sscalpone with my own additional suggested changes. Please everyone let me know what you think about the above suggestion.

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


More information about the flang-commits mailing list