[flang-commits] [flang] [Flang][OpenMP] Fix default firstprivatization miscategorization of mod file symbols (PR #157009)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Mon Sep 8 13:48:25 PDT 2025


================
@@ -0,0 +1,37 @@
+! Test that we appropriately categorize types as firstprivate even across
+! module boundaries.
+
+!RUN: split-file %s %t
+
+!RUN: %flang_fc1 -emit-hlfir -fopenmp -mmlir --enable-delayed-privatization-staging -fopenmp-version=50 %t/imp_scalar_map_module.f90 -o - \
+!RUN: | %flang_fc1 -emit-hlfir -fopenmp -mmlir --enable-delayed-privatization-staging  -fopenmp-version=50 %t/imp_scalar_map_target.f90 -o - \
+!RUN: | FileCheck %t/imp_scalar_map_target.f90
----------------
luporl wrote:

I just noticed https://github.com/llvm/llvm-project/commit/e9f5a43d484b6955a95bd9187d16c196b8b3653c, that should fix it, thanks.

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


More information about the flang-commits mailing list