Bug: Device friend function is not seen in a different file

Hello! It seems to me I’ve encountered an error in clang (CUDA component). In a nutshell, in a multifile Cuda project, a device friend function is not seen by the compiler (I figure out it’s a bug because nvcc compiles the project without issues). A detailed report is here. It would be nice if any of you wanted to take a look.

Thank you!

Best wishes,
Nikolay Nechaev

Hello again. I apologize for the anxiety, in my previous letter, something went wrong with a link to the reported bug. Its ID in llvm’s Bugzilla is 45982, the direct link (hope, it won’t break again) is https://bugs.llvm.org/show_bug.cgi?id=45982. Sorry again, I will be thankful if somebody takes a look.

Thank you!

Best wishes,
Nikolay Nechaev