Skip to content

[Flang][OpenMP] Unexpected error: name in DEALLOCATE statement must have the ALLOCATABLE or POINTER attribute #58178

Closed
@sscalpone

Description

@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)
                     ^

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions