ashcrimson wrote...
I am curious about its legality. I mean for example, a dead woman being made love to by her husband and they normally do have sex anyway while she was alive
Tricky question.
In some parts of the world, necrophilia isn't illegal per say. It's called "abuse of corpses", but that definition normally has a wider spectrum.
Abuse of corpse.
(a) A person commits the crime of abuse of a corpse if, except as otherwise authorized by law, he knowingly treats a human corpse in a way that would outrage ordinary family sensibilities. Abuse of a corpse may include knowingly and willfully signing a certificate as having embalmed, cremated, or prepared a human body for disposition when, in fact, the services were not performed as indicated.
http://www.legislature.state.al.us/CodeofAlabama/1975/13A-11-13.htm
Nowhere does it specifically say sex with a corpse falls under this law, but you get the idea.