Former congressman Barney Frank on Friday said that outgoing Republican Representative Aaron Schock should be “exposed” if he's gay because he has an anti-gay voting record.

The 74-year-old openly gay Frank, who is currently pitching his new memoir, Frank: A Life in Politics from the Great Society to Same-Sex Marriage, made the comments during an appearance on ABC News' Power Players.

Schock, 33, resigned in a statement this week amid questions about his use of federal funds.

Frank reiterated Friday that if speculation surrounding Schock's sexuality is true, then he's “forfeited any right to privacy because he votes anti-gay.”

“When you are in public office and you vote opposite to the way you live your life … I don't think you have privacy,” Frank said. “I was asked about Aaron Schock. I said, 'I don't know.' Anybody who is gay and votes in an anti-gay fashion has, it seems to me, lost the right to privacy, because it's been converted into a right to hypocrisy. Any public official who lives one way and votes another ought to be exposed.”