-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 error when lastprivate clause specified in do construct has a derived type with an allocatable variable #91928
Comments
@llvm/issue-subscribers-openmp Author: None (ohno-fj)
```
Version of flang-new : 19.0.0(1a49810)/AArch64
```
When The following are the test program, Flang-new, Gfortran and ifort compilation/execution result. lp10_32.f90: subroutine s4
type y3
integer,allocatable::x
end type y3
type(y3)::v
allocate(v%x)
v%x=0
!$omp parallel
if (.not. allocated(v%x)) print *,'101'
!$omp do lastprivate(v)
do i=1,10
v%x=i
end do
!$omp end do
!$omp end parallel
end subroutine s4
program main
call s4
print *,'pass'
end program main
|
Thank you for reporting this. It should be fixed by #100417 |
@llvm/issue-subscribers-flang-ir Author: None (ohno-fj)
```
Version of flang-new : 19.0.0(1a49810)/AArch64
```
When The following are the test program, Flang-new, Gfortran and ifort compilation/execution result. lp10_32.f90: subroutine s4
type y3
integer,allocatable::x
end type y3
type(y3)::v
allocate(v%x)
v%x=0
!$omp parallel
if (.not. allocated(v%x)) print *,'101'
!$omp do lastprivate(v)
do i=1,10
v%x=i
end do
!$omp end do
!$omp end parallel
end subroutine s4
program main
call s4
print *,'pass'
end program main
|
…0417) Fixes llvm#91928 (cherry picked from commit 98e733e)
Summary: Fixes #91928 Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250643
…0417) Fixes llvm#91928 (cherry picked from commit 98e733e)
When
lastprivate
clause specified indo
construct has aderived type
with an allocatable variable, a compilation terminates abnormally.When
lastprivate
clause indo
construct is removed, a compilation terminates normally.The following are the test program, Flang-new, Gfortran and ifort compilation/execution result.
lp10_32.f90:
The text was updated successfully, but these errors were encountered: