[all-commits] [llvm/llvm-project] 47bcc9: [Flang][OpenMP] Fix to variables not inheriting da...
harishch4 via All-commits
all-commits at lists.llvm.org
Tue Jan 23 01:47:02 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 47bcc91e06798e8730983b3848cc152a79c7afae
https://github.com/llvm/llvm-project/commit/47bcc91e06798e8730983b3848cc152a79c7afae
Author: harishch4 <harishcse44 at gmail.com>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M flang/lib/Semantics/resolve-directives.cpp
A flang/test/Lower/OpenMP/threadprivate-default-clause.f90
Log Message:
-----------
[Flang][OpenMP] Fix to variables not inheriting data sharing attributes (#79017)
When a default(none) clause exists and a threadprivate variable is used
inside the construct, the variable does not inherit threadprivate
behavior and throws the below error.
> error: The DEFAULT(NONE) clause requires that 'a' must be listed in a
data-sharing attribute clause
Added a condition to skip the error if it is a threadprivate variable.
Fixes: https://github.com/llvm/llvm-project/issues/49545
More information about the All-commits
mailing list