nopython
rewrites don't account for variables that should raise "NameError"
#8865
Labels
bug - incorrect behavior
Bugs: incorrect behavior
Reporting a bug
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
i.e. it's possible to run as 'python bug.py'.
This:
produces:
from the
nopython rewrites
pass. The exception comes from here:numba/numba/core/analysis.py
Lines 173 to 180 in e7a1e83
It looks like that there's something wrong is identified, it's just that a more ICE-like error is raised than a
NameError
that would be expected by a user.The text was updated successfully, but these errors were encountered: