-
Notifications
You must be signed in to change notification settings - Fork 147
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
Use of one
in generator causing world age issues for ForwardDiff
#316
Comments
Probably you should explain how the resulting eltype |
Is there clear evidence that this line couldn't be moved into the "body" (the quoted expression)? Inference is getting better and better at static evaluation... |
Yes, moving the type computation into the body should fix this up. We do the same thing elsewhere in StaticArrays. |
Does #317 do it for you? I found quite a lot of other places where this same problem exists. |
Addresses the MWE. Please bump if there are remaining issues. |
This fixes the broken ForwardDiff tests. Can you tag a new release containing #317? Thanks! |
ref JuliaDiff/ForwardDiff.jl#277
MWE (expected output is an empty
SVector
):AFAICT this is caused by the use of
one
(which ForwardDiff overloads forDual
numbers) within the generator here.The text was updated successfully, but these errors were encountered: