[flang-commits] [flang] [flang] Adding lowering of TEAMs features to PRIF in MIF Dialect (PR #165573)

Dan Bonachea via flang-commits flang-commits at lists.llvm.org
Thu Oct 30 21:58:01 PDT 2025


================
@@ -0,0 +1,25 @@
+! RUN: %flang_fc1 -emit-hlfir -fcoarray %s -o - | FileCheck %s --check-prefixes=COARRAY
+! RUN2: not %flang_fc1 -emit-hlfir %s -o - | FileCheck %s --check-prefixes=NOCOARRAY
+
+program test_sync_team
+  use, intrinsic :: iso_fortran_env, only: team_type
+  implicit none
+  ! NOCOARRAY: Coarrays disabled, use '-fcoarray' to enable.
----------------
bonachea wrote:

Why is this error message different from the rest?

Strictly speaking, `sync team` is a multi-image feature and NOT a coarray feature. As such, the multi-image error message would be more appropriate here.


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


More information about the flang-commits mailing list