-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
nonsensical TypeError from "-X jit -m compile --static" #86
Comments
Here is a fix to def main():
c: double = 0.
c += foo(.4, .97)
print('done', box(c)) Even if that's required, the error output is wrong. |
In a more complete program than this simple repro, I've seen it manifest more severely, namely a SIGSEGV. Fixing the primitive typing on |
The explicit |
good (no options):
bad (
-X jit -m compile --static
):The compiler is acting as if the written code were
c += foo
rather thanc += foo(.4, .97)
.The problem goes away by removing
-X jit
,--static
, or use of thedouble
primitives.cinder_typed_prim_bug.py
seen in cinder-3.8.6c2de94
The text was updated successfully, but these errors were encountered: