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

Assert hit in bbc -debug #1498

Open
mikaoP opened this issue Feb 24, 2022 · 0 comments
Open

Assert hit in bbc -debug #1498

mikaoP opened this issue Feb 24, 2022 · 0 comments

Comments

@mikaoP
Copy link

mikaoP commented Feb 24, 2022

The following code hits an assert when CFGConversion pass is run:

 subroutine sub(n, c, a, b)
     implicit none
     integer :: n
     real :: a(n), b(n), c(n)
     intent(in) :: a, b
     intent(out) :: c

     integer :: i

     do i = 1, n
       c(i) = a(i) + b(i)
     end do
 end subroutine sub

Command: bbc f1.f90 -debug --pass-pipeline --cfg-conversion
Log

  %29 = fir.do_loop bbc: /home/rpenacob/llvm-mono/llvm/include/llvm/ADT/ilist_iterator.h:138: llvm::ilist_iterator::reference llvm::ilist_iterator<llvm::ilist_detail::node_options<mlir::Block, true, false, void>, false, false>::operator*() const [OptionsT = llvm::ilist_detail::node_options<mlir::Block, true, false, void>, IsReverse = false, IsConst = false]: Assertion `!NodePtr->isKnownSentinel()' failed.
PLEASE submit a bug report to mailto:[email protected] and include the crash backtrace.
Stack dump:
0.	Program arguments: ./bin/bbc f1.f90 -debug --pass-pipeline --cfg-conversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant