-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix compilation errors with clang 19 #3799
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
Fix compilation errors with clang 19 #3799
Conversation
051d725 to
2965954
Compare
|
Thank you, you are a hero! I had seen these errors in the CRAN logs but had not yet been able to address them. So this takes something off my todo list. I may add the I'll approve once I see the build succeeds (it should, you didn't make any breaking changes as far as I can tell. Could take a few minutes though). Thanks again! 🚀 |
|
Always an honor to contribute to a well maintained open source library! Edit: Looks like it is now green by retriggering 😃 . Looking forward to getting it merged! |
rcurtin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again! Feel free to add your name to the list of contributors and update the HISTORY.md file, or, I'll push a commit to HISTORY.md to document the change before merge. 👍
The new compiler version seems to perform more exhaustive checks on templates, even if they are not initiated. As the code was malformed also before, it is likely that it is dead code. However, this commit is mainly to ensure users using clang 19 can include the header without compilation error. Note that this commit does not guarantee that currently other code might not compile with clang 19, it just fixes some code which was used transitevily and caused problems.
2965954 to
90b8d28
Compare
Done, hope the very short description in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second approval provided automatically after 24 hours. 👍
|
Thanks again @marlamb! Our github-actions scripts are supposed to offer you stickers for your laptop now, but I think it is not working right (I have to go debug it...), so anyway, if you want some stickers, send your mailing address to [email protected] and we'll get some in the mail. 👍 |
The new compiler version seems to perform more exhaustive checks on templates, even if they are not initiated. As the code was malformed also before, it is likely that it is dead code. However, this commit is mainly to ensure users using clang 19 can include the header without compilation error.
Note that this commit does not guarantee that currently other code might not compile with clang 19, it just fixes some code which was used transitevily and caused problems.