https://bugs.llvm.org/show_bug.cgi?id=47659

            Bug ID: 47659
           Summary: [Unparsing][OpenACC] Fatal internal error: CHECK fails
                    in Outdent function while unparsing OpenACC parallel
                    loop construct.
           Product: flang
           Version: trunk
          Hardware: HP
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedb...@nondot.org
          Reporter: gsocsamee...@gmail.com
                CC: david.tr...@arm.com, jper...@nvidia.com,
                    kirankuma...@gmail.com, llvm-bugs@lists.llvm.org,
                    sscalp...@nvidia.com

For a test mentioned below and compiled as :
$ f18 -fopenacc file.f90

I get following error:

**fatal internal error: CHECK(indent_ >= indentationAmount_) failed at
/home/amd/f18_git/test/llvm-project/flang/lib/Parser/unparse.cpp(2598)**

========file.f90=======
program test
  integer :: i, j
  label1: do i = 1, 10
    !$acc parallel loop
    do j = 1, 10
      if (j == 2) then
        exit label1
      end if
    end do
  end do label1
end program test

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to