llvm icon indicating copy to clipboard operation
llvm copied to clipboard

Internal `getSyclObjImpl` API is exposed to users via ADL

Open aelovikov-intel opened this issue 1 month ago • 0 comments

https://godbolt.org/z/c5rr9aWrj

#include <sycl/sycl.hpp>

int main() {
    sycl::device d;
    auto id = getSyclObjImpl(d);
    sycl::queue q;
    auto iq = getSyclObjImpl(q);
}

compiles while it shouldn't. I think this is due to the inheritance from detail::OwnerLessBase.

aelovikov-intel avatar Dec 03 '25 19:12 aelovikov-intel