This marriage isn't going to be for the purposes of procreation, or for raising kids with both father and mother, either. (Interesting that French law anticipated the problem.)
Question: if you can legally marry a corpse, what's the problem with same-sex marriage?