-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flang][OpenMP] Compilation abnormally terminates when a variable declared in equivalence statement is defined in common statement, and the common-block-name is specified in threadprivate directive and copyprivate clause #122825
Labels
Comments
luporl
added a commit
to luporl/llvm-project
that referenced
this issue
Feb 18, 2025
…equivalence Semantics were not checking for variables appearing in equivalence statements when those were part of a threadprivate common block. Fixes llvm#122825
@llvm/issue-subscribers-flang-frontend Author: None (ohno-fj)
```
Version of flang : 20.0.0(f4230b4)/AArch64
```
When a variable declared in The following are the test program, Flang, Gfortran and ifx compilation/execution result. snggx596_.f90: subroutine s1
equivalence (k(2),kk)
common /com1/ k(2)
!$omp threadprivate(/com1/)
!$omp parallel
k=0
!$omp single
k(1)=1
kk=2
!$omp end single copyprivate(/com1/)
if (any(k/=[1,2])) print *,1011,k
if ( (kk/=2)) print *,1012,kk
!$omp end parallel
end
call s1
print *,'pass'
end
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
When a variable declared in
equivalence
statement is defined incommon
statement, and thecommon-block-name
is specified inthreadprivate
directive andcopyprivate
clause, a compilation terminates abnormally.The following are the test program, Flang, Gfortran and ifx compilation/execution result.
snggx596_.f90:
The text was updated successfully, but these errors were encountered: