How could one copy union simple members with memcpy?
What you are doing with two memcpy is undefined behavior.
The union is only as big as necessary to hold its largest data member. The other data members are allocated in the same bytes as part of that largest member. The details of that allocation are implementation-defined, and it's undefined behavior to read from the member of the union that wasn't most recently written. Many compilers implement, as a non-standard language extension, the ability to read inactive members of a union.
other has only
function_p as active and the second memcopy triggers undefined behavior.