reinterpret_cast may not convert a pointer-to-function to a void-pointer. Take a detour through intptr_t and *then* convert to a pointer-to-function.
Closed by commit rL213682 (authored by @majnemer).