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

.view() for NumPy types broken if the view type is a complex type #7029

Open
2 tasks done
stuartarchibald opened this issue May 14, 2021 · 0 comments
Open
2 tasks done
Labels
bug - ice Bugs: internal compiler error

Comments

@stuartarchibald
Copy link
Contributor

Reporting a bug

  • I have tried using the latest released version of Numba (most recent is
    visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
  • I have included a self contained code sample to reproduce the problem.
    i.e. it's possible to run as 'python bug.py'.

This:

from numba import njit
import numpy as np

@njit
def foo(x):
    return x.view(np.complex64)

foo(1)

does:

cpython/unsafe/numbers.py", line 18, in viewer
                      assert 0, "unreachable"
                  AssertionError: unreachable
@stuartarchibald stuartarchibald added the bug - ice Bugs: internal compiler error label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - ice Bugs: internal compiler error
Projects
None yet
Development

No branches or pull requests

1 participant