Closed cdriveraus closed 9 months ago
The warning is about assigning a value to itself, and is caused by the following lines in your package:
Oh. Perils of functions generating functions :) thanks a lot, guess I should have been able to figure that out myself... I'll leave it up to someone in charge to close as if this is a problem, 'maybe' stan should also warn about it?
Transferring this to the stanc3
repo so they're aware
The proposal is to warn whenever a variable is assigned to itself?
We can do that. We could also probably go one step further and just remove such a statement, since it is semantically meaningless in Stan. Maybe only when optimizations are enabled.
Sounds good. It looks like this is a warning introduced with Clang 16, so it's likely to crop up more as people upgrade
Didn't take long to get a package removal threat from CRAN / Ripley... this is for ctsem, I guess the only approach is to wait for a new Rstan?