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

'$phiXX.X.XX' is not in scope when try/catch in literal_unroll #8148

Closed
DannyWeitekamp opened this issue Jun 12, 2022 · 1 comment
Closed

Comments

@DannyWeitekamp
Copy link
Contributor

Numba 0.55.2
Getting this warning whenever I use "try/catch" pattern inside a literal_unroll.

from numba import njit, literal_unroll

tup = (0, 1)
@njit(cache=True)
def foo():
    for x in literal_unroll(tup):
        try:
           print(x) 
        except Exception:
            pass
foo()
/home/danny/.local/lib/python3.8/site-packages/numba/core/ssa.py:272: NumbaIRAssumptionWarning: variable '$phi28.6.88' is not in scope.

This warning came from an internal pedantic check. Please report the warning
message and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new?template=bug_report.md
@stuartarchibald
Copy link
Contributor

@DannyWeitekamp Many thanks for reporting this as requested by the warning. I think the underlying issue is the same as: #8117 and #8117 (comment) also fixes it. Am going to close this as, whilst the input source is different, it's a essentially a duplicate due to the same root cause. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants