[flang-commits] [clang] [flang] [mlir] [Flang][OpenMP] Lower DECLARE TARGET INDIRECT clause (PR #208387)

via flang-commits flang-commits at lists.llvm.org
Fri Aug 14 02:25:54 PDT 2026


================
@@ -2671,6 +2656,21 @@ void OmpStructureChecker::Leave(const parser::OmpDeclareTargetDirective &x) {
       context_.Warn(common::UsageWarning::OpenMPUsage, toClause->source,
           "The usage of TO clause on DECLARE TARGET directive has been deprecated. Use ENTER clause instead."_warn_en_US);
     }
+    if (indirectClause) {
----------------
blazie2004 wrote:

The restriction only applies when the argument is true. The value is now evaluated before applying the DEVICE_TYPE check, so that case is accepted. Added to indirect03.f90.

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


More information about the flang-commits mailing list