```julia julia> using ForwardDiff, LogExpFunctions julia> x = ForwardDiff.Dual(-Inf, 0.0) Dual{Nothing}(-Inf,0.0) julia> logaddexp(x, x) Dual{Nothing}(-Inf,NaN) ``` I think this is related to JuliaDiff/ForwardDiff.jl#481. It is the `a == b` in `logaddexp`, but I am not yet sure how to elegantly special-case this.