If a person makes love to a dead person in a dream, if he knows that person, he will gain a benefit from his children or inherit from that person. Sometimes, having a relationship with a dead person means committing a sin, doing things that people don't like, or getting help from that person's family.