| Issue |
58178
|
| Summary |
[Flang][OpenMP] Unexpected error: name in DEALLOCATE statement must have the ALLOCATABLE or POINTER attribute
|
| Labels |
openmp,
flang:frontend
|
| Assignees |
|
| Reporter |
sscalpone
|
omp_dealloc.f90
```
subroutine s
implicit none
double precision,allocatable,dimension(:) :: r
!$omp parallel private(r)
allocate(r(1))
deallocate(r)
!$omp end parallel
end subroutine
```
```
% flang -c omp_dealloc.f90
% flang -c -fopenmp omp_dealloc.f90
./omp_dealloc.f90:6:20: error: name in DEALLOCATE statement must have the ALLOCATABLE or POINTER attribute
deallocate(r)
^
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs