Skip to content

[Flang][OpenMP] Error when unstructured code is present  #74348

Closed
@kiranchandramohan

Description

@kiranchandramohan

This is another instance where the presence of unstructured code in OpenMP regions leads to failure.

Error

error: loc("fname.f90":10:3): operation with block successors must terminate its parent block

Program

subroutine sb(ninter, numnod)
  integer :: ninter, numnod
  integer, dimension(:), allocatable :: indx_nm

  !$omp parallel
  if (ninter>0) then
    allocate( indx_nm(numnod) )
  endif
  220      continue
  goto 220
  !$omp end parallel
end subroutine

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions