Open faze-geek opened 1 year ago
Here is another case where even after the pr fixing #1524 MSVC
does not generate the correct result. Look at the comments - https://github.com/lcompilers/lpython/issues/1524#issuecomment-1434714762 . Smit was not able to reproduce these results on his main if I recall correctly.
Even I am facing the same issue as stated above. I am also working with the MSVC compiler on Windows. I raised an issue too.
@faze-geek, Can you please verify that both Windows and WSL generate the same ASR?
This Error message should only be shown for Global statements, but why does it show for the variables inside a function? I don't know whether this error was introduced after this PR: https://github.com/lcompilers/lpython/pull/1491 was merged. We need to investigate what's going on here.
We'll have to investigate why MSVC behaves differently.
I have come across some instances where I felt that the
MSVC
build set up gives different outputs to other machines. One such case can be seen in #1590 .Snippet -
On my MSVC windows setup -
On my WSL with windows setup -
@Smit-create @certik Any possible reasons why this might be happening. We should look into this.