Ubaid Shaikh

Results 126 comments of Ubaid Shaikh

I did several attempts at this, although did not succeed yet. I think/guess I need help in this.

I noted this issue at https://github.com/lfortran/lfortran/issues/597

It seems there is a slight possibility that this issue/bug is related to https://github.com/lfortran/lfortran/issues/585.

>The best way to debug these things is to use "bisection", where you first reproduce it robustly, and then you manually simplify the test program to a minimal program that...

>The best way to debug these things is to use "bisection" I attempted this again for sometime. I added `cout` statements (hopefully) to find out where exactly the code fails....

Also, sharing some ways previously tried and did not succeed. - Increasing the default memory size of `Allocator` from `1024 * 1024` to `1024 * 1024 * 640` (`i.e.` `640MB`)....

>The following ways seem to fix the issue: >Using a separate/different FortranEvaluator specifically for obtaining wat from wasm. So, we use fe.get_wasm() and then fe2.get_wat2() in emit_wat_from_source() of src/bin/lfortran.cpp. >Using...

>The following ways seem to fix the issue: >Using a separate/different FortranEvaluator specifically for obtaining wat from wasm. So, we use fe.get_wasm() and then fe2.get_wat2() in emit_wat_from_source() of src/bin/lfortran.cpp. >Using...

#665 seems to be more of a temporary fix. I submitted another `PR` https://github.com/lfortran/lfortran/pull/666 with the `cout` statements that helped me navigate and find the breaking code. It seems I...

From https://gitlab.com/lfortran/lfortran/-/issues/764#note_1058656219, Minimal example: ```fortran program expr2 implicit none integer, parameter :: dp = kind(0.d0) real(kind=dp) :: x x = 5_dp print *, x end program ``` The kind function...