I'm going to fucking maul the next person who makes a character based on Alan Turing and pleasantly "forgets" that he was gay. He died for it.
Where did this happen?
If TVTropes is right, Pacific Rim. I sent a rather lengthy note to the scriptwriter.
Wait, the mathematician guy? The one with the cane?
...
He never expressed any interest in women from what I can tell, and the majority of his interactions are with other scientist dude, though no signs of sexuality are shown either case. You could say he's gay but was focused on the mission or somesuch?