@Unitedil,
"Dave (or whatever his name is), are you gay? I'm asking because I'm getting mixed signals from you."
Use both sentences as this guy needs to understand how he's coming across.
And I do hope you're no longer pals with the other guy. Someone who you tell a confidence to, who blabs it the first chance they get, is no friend of yours.