Issue 114166
Summary [flang-new] run error caused by Arithmetic exception, which shouldn't happended.
Labels new issue
Assignees
Reporter keepyixiao
    fortran source code 

`program main
 integer :: i, step, start_tep
    i = 0
    step = 1
    start_step = 1
    if(i > 0 .AND. step /= start_tep .AND. mod(step-1, i) == 0) then
        i = i + 1
    endif
    write(*,*),i
end program main`

when I use the flang-new from master to compile and run this , error happended 

![flang-new error](https://github.com/user-attachments/assets/c4c1cdef-3042-4494-85da-6a23ff9ab3d2)


llvm branch information
![llvm master ](https://github.com/user-attachments/assets/84aaac9e-7cba-4436-8e4d-f1b3b1195693)




_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to