Skip to content

[flang][OpenACC] stop statement in one construct inside one acc region #61281

Open
@PeixinQiao

Description

@PeixinQiao
subroutine test_stop_in_region3()
  integer :: x
  !$acc parallel
    x = 3
    if (x > 1) stop x
  !$acc end parallel
end
$ bbc -emit-fir -fopenacc test.f90 
error: loc("/home/qpx/compilers/llvm-community/example/fix-exit-region/acc/test.f90":4:5): operation with block successors must terminate its parent block
FATAL: verification of lowering to FIR failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorflang:iropenacc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions