If you dream that you are gay (but you are not in your waking life), or hanging out with a group of gay people, it is symbolic of self-love and self-acceptance. You are becoming comfortable with your sexuality and femininity.
If in your dream you hate the idea of homosexuality, then it represents your fears and rejection of parts of your own femininity and sexuality.
If you are gay in real life, then the dream is simply a reflection of your own self.
If you dream that your real-life boyfriend or husband is gay, you could be feeling rejected by him in real life, either because he is physically cold or you sense he is keeping some of his emotions secret from you. Your subconscious mind might be telling you that he’s keeping a secret from you in some way. Or, you could just be feeling insecure about the strength and nature of the relationship. Communication is key to finding out what’s really going on.... My Dream Interpretation
Many psychologists believe that each one of us has at least some element of homosexuality within us and dreams in which you experience homosexual or lesbian urges may suggest a desire for paternal or maternal love, conflict or anxiety about your gender, or feelings of sexual inadequacy. The dream may also be urging you to explore the masculine or feminine side of your nature.... The Element Encyclopedia
Any sexual act in a dream connects symbolically to the process of integration and the joining together of different aspects of the personality. In the case of gay sex, what is being highlighted is elements of the masculine principle such as taking action and aggression.
It is not unusual for heterosexual men and women to have dreams about gay sex, and such dreams are not necessarily related to sexuality or the waking-life expression of it. However, if the dreamer identifies as a gay man, then such dreams should be explored more literally.... Complete Dictionary of Dreams
If you are heterosexual and had a dream in which you were having sex with a person of the same sex, this may suggest that you are sexually attracted to members of your own sex but have repressed this inclination.
If this is the case, your dream may have been fulfilling your unconscious fantasies and was encouraging you to be honest with yourself. Many psychologists believe that we are all bisexual at a deep level; a dream like this may have given you the opportunity to explore in a safe environment an experience that your conscious mind finds objectionable due to social conditioning. If, however, you are convinced you are not gay or lesbian, your dream may simply have highlighted the intimate nature of your friendships with people of the same sex or your desire to meet someone similar to yourself. Your unconscious may also have been highlighting the fact that if you are in a relationship, you sometimes you feel closer to your friends than you do to your partner.
If you are homophobic in waking life or in your dream, your unconscious may have been urging you to be more open-minded.
If you are gay and dream of making love to a person of the same sex, this will have much the same interpretation as dreams concerning heterosexual sex and partnerships.
If you are gay and have dreams of heterosexual sex, your unconscious may be highlighting unconscious attractions or emphasizing the closeness of your emotional bonds with friends of the opposite sex.... The Element Encyclopedia