Skip to content

Conversation

@marlamb
Copy link
Contributor

@marlamb marlamb commented Sep 20, 2024

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.

@marlamb marlamb force-pushed the feature/fix-compilation-errors-with-clang-19 branch from 051d725 to 2965954 Compare September 20, 2024 17:43
@rcurtin
Copy link
Member

rcurtin commented Sep 20, 2024

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 Begin() and Count() members to Octree for completeness-sake, but that can happen later.

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! 🚀

@marlamb
Copy link
Contributor Author

marlamb commented Sep 21, 2024

Always an honor to contribute to a well maintained open source library!
On the CI it looks like a step building curl does not succeed. I guess this is unrelated to this commit?

Edit: Looks like it is now green by retriggering 😃 . Looking forward to getting it merged!

Copy link
Member

@rcurtin rcurtin left a 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.
@marlamb marlamb force-pushed the feature/fix-compilation-errors-with-clang-19 branch from 2965954 to 90b8d28 Compare September 22, 2024 07:18
@marlamb
Copy link
Contributor Author

marlamb commented Sep 22, 2024

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. 👍

Done, hope the very short description in the HISTORY.md is fine, as there still might be problems with clang 19, that I did not see transitively.

Copy link
Contributor

@github-actions github-actions bot left a 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. 👍

@shrit shrit merged commit 9866905 into mlpack:master Sep 23, 2024
@rcurtin
Copy link
Member

rcurtin commented Sep 23, 2024

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants