I can imagine your reactions already:
Okay, not so much the last one. But it's true! It is legal to marry a dead person in France. But they have some stipulations, of course! The couple has to have been engaged prior to the person's death, with obvious intent to go through with the wedding.
At least the corpse isn't getting married against his/her will, right?