Skip to content
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] Unexpected error: name in DEALLOCATE statement must have the ALLOCATABLE or POINTER attribute #58178

Closed
sscalpone opened this issue Oct 6, 2022 · 2 comments

Comments

@sscalpone
Copy link
Contributor

sscalpone commented Oct 6, 2022

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)
                     ^
@llvmbot
Copy link
Member

llvmbot commented Oct 6, 2022

@llvm/issue-subscribers-openmp

@llvmbot
Copy link
Member

llvmbot commented Oct 6, 2022

@llvm/issue-subscribers-flang-frontend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants