Ah, thanks to @AndyL for helping me remember: Greg Bear wrote a short story in 1989 called “Tangents”, where one of the main characters is clearly based on Turing, and he’s gay. So it was known to the public (or at least to Greg Bear) at least by then.