Skip to content

conflicting max(sizs_t,size_t) function definition with HIP header #1845

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

Open
yxsamliu opened this issue Mar 29, 2025 · 0 comments
Open

conflicting max(sizs_t,size_t) function definition with HIP header #1845

yxsamliu opened this issue Mar 29, 2025 · 0 comments

Comments

@yxsamliu
Copy link

constexpr size_t max(size_t a, size_t b)

There is a constexpr max(size_t,size_t) function defined in global namespace which conflicts with a clang PR:

llvm/llvm-project#82956

Due to this conflict, we cannot fix a clang issue.

HIP apps are not supposed to define functions which are supposed to be defined in language headers.

Please rename the function.

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

No branches or pull requests

1 participant