[all-commits] [llvm/llvm-project] 4b33d4: [Flang][OpenMP] Fix visibility of user-defined red...
CHANDRA GHALE via All-commits
all-commits at lists.llvm.org
Tue Feb 10 22:36:58 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4b33d45809e175f9bb0a74faab049d7fd229e45e
https://github.com/llvm/llvm-project/commit/4b33d45809e175f9bb0a74faab049d7fd229e45e
Author: CHANDRA GHALE <chandra.nitdgp at gmail.com>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M flang/include/flang/Semantics/symbol.h
M flang/lib/Semantics/check-omp-structure.cpp
A flang/test/Semantics/OpenMP/declare-reduction-derived-module.f90
Log Message:
-----------
[Flang][OpenMP] Fix visibility of user-defined reductions for derived types and module imports (#180552)
User-defined reductions declared in a module were not visible to
programs that imported the module via USE statements, causing valid code
to be incorrectly rejected. The reduction identifier defined in the
module scope wasn't being found during semantic analysis of the main
program.
Ref:
OpenMP Spec 5.1
_"If a directive appears in the specification part of a module then the
behavior is as if that directive,
with the variables, types and procedures that have PRIVATE accessibility
omitted, appears in the
specification part of any compilation unit that references the module
unless otherwise specified "_
Fixes :
[https://github.com/llvm/llvm-project/issues/176279](https://github.com/llvm/llvm-project/issues/176279)
Co-authored-by: Chandra Ghale <ghale at pe31.hpc.amslabs.hpecorp.net>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list