Skip to content
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

[ROCm] fixed gcc build #14295

Closed
wants to merge 2 commits into from
Closed

[ROCm] fixed gcc build #14295

wants to merge 2 commits into from

Conversation

i-chaochen
Copy link
Contributor

@i-chaochen i-chaochen commented Jun 28, 2024

gcc compilation will break due to this change 4d7ec1e

@xla-rotation

@@ -360,12 +360,16 @@ class LiteralBase {
// function which would lead to inconsistencies. Use Hash instead.
template <typename H>
friend H AbslHashValue(H state, const LiteralBase& value) {
#if (!defined(__GNUC__)) // clang
static_assert(false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you instead of disabling this check for gcc change it to static_assert(sizeof(H) == 0, ... (see https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2593r0.html)

Copy link
Contributor Author

@i-chaochen i-chaochen Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this link! looks static_assert(always_false<T>::value); is a more acceptable way... :)

@i-chaochen
Copy link
Contributor Author

thanks @ezhulenev for the suggestion! PTAL

@i-chaochen
Copy link
Contributor Author

This can be closed due to #14296

@i-chaochen i-chaochen closed this Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants