-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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 specific-procedure-list specified in procedure-stmt of interface-specification is specified in parallel construct with private clause #121720
Comments
@llvm/issue-subscribers-flang-ir Author: None (ohno-fj)
```
Version of flang : 20.0.0(c5492e3)/AArch64
```
When The following are the test program, Flang, Gfortran and ifx compilation/execution result. snen_prc_s69_2.f90: subroutine s1
interface
function k()
end function k
end interface
procedure(k),pointer::p
!$omp parallel private(p)
p=> k
if (p() /= 2) print *,'error'
!$omp end parallel
end subroutine s1
program main
call s1
print *,'pass '
end program main
function k()
k=2
end function k
|
When
specific-procedure-list
specified inprocedure-stmt (procedure)
ofinterface-specification
is specified inparallel
construct withprivate
clause, a compilation terminates abnormally.When
private
clause is removed, the compilation succeeds.The following are the test program, Flang, Gfortran and ifx compilation/execution result.
snen_prc_s69_2.f90:
The text was updated successfully, but these errors were encountered: