-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
BoundsError in invoke #9520
Comments
The quality of backtraces varies with your platform, due (IIUC) to limitations in LLVM rather than julia. For example: julia> f(::Any, ::Any, ::Any, args...) = Any
f (generic function with 1 method)
julia> invoke(f, (Any, Any, Any), 1, 1, 1)
ERROR: BoundsError()
in typeinf at ./inference.jl:1397
in typeinf_ext at ./inference.jl:1242 What platform are you on? |
are you running julia0.3 with llvm3.5? i'm guess so because of your install location. i think i've fixed the line number issue for that platform on the latest master. |
I'm running latest master with llvm 3.5 on Linux. |
Just tested a few more cases and it actually fails with 3 or more arguments. |
should the fix here be scheduled for backporting? |
Yes |
I think this one would be more appropriate for 0.3.6. |
any change in backporting opinion now that these tests have been causing issues? |
I guess it probably fine to wait until someone fixes the rest of the bug |
I've got a very weird
BoundError
when trying use invoke. See minimized demonstration belowThe error goes away if I remove the
args...
or one of the arguments so I guess I'm usinginvoke
in the right way.P.S. It might be helpful to keep linenumber info of the original source file in
sys.so
. This would be especially useful when pre-compiling packages support is added.The text was updated successfully, but these errors were encountered: