clang can't resolve &std::free in decltype(&std::free) because std::free is overloaded (for host and device).