Description
Although https://reviews.llvm.org/D124866 aims to fix bugs such as NVIDIA/thrust#1703 or https://bugs.gentoo.org/857126
When I tried clang-15 rc2, the issue still exists.
Reproduce method:
pure C++ test.C
#define __noinline__ __attribute__((noinline))
#include<future>
int main()
{
return 0;
}
Run clang++ test.C
HIP code example test.hip
#include <hip/hip_runtime.h>
#include<future>
int main()
{
return 0;
}
Run clang++ -nogpulib -nogpuinc -x hip test.hip
Both gives error: g++-v12/bits/shared_ptr_base.h:196:22: error: use of undeclared identifier 'noinline'; did you mean 'inline'?
Metadata
Metadata
Assignees
Type
Projects
Status
Done