Closed
Description
Discussed in #4551
Originally posted by zjin-lcf September 13, 2021
When the kernel name is "distance" (i.e. ), the compiler error implies that the name is in conflict with something defined in sycl_span.hpp.
The compiler reported the error with the HIP/ROCm backend. The compiler does not report the error for the CUDA backend. Could you reproduce the error using any sycl program ?
error: invalid operands to binary expression ('size_t' (aka 'unsigned long') and 'distance')
_SYCL_SPAN_ASSERT(_Extent == distance(__f, __l),
``` </div>