If a man is in a physical situation where he is unable to have an erection will there still be an issur of yichud (the prohibition of being alone with someone that it is forbidden to have relations with. See SA EH Siman 22)?
Over there the Shulchan Aruch (EH Siman 22 Sif 1) the Machaber writes that yicud is ossur because it causes "liglos ervah" (to reveal "ervah".) Meaning that from the yichud (seclusion) of these 2 people could come to a situation of relations between them. Is the gezera however specifically in a case where actual relations could take place or even other forms of physical contact that might be ossur between these 2 people (this is essentially what the question boils down to.) And therefore even if the man is unable to obtain an erection still there would be an issur yichud because we are afraid that some other form of physical contact will take place between the 2 people aside from relations.