I would assume he meant “gay” as in orientation and not as in homosexual behavior. The Pope is not going to go against Church teaching on the matter. As he said, the catechism explains very will the difference between having same sex attraction which is disordered and the sin of homosexual acts.
The issue needs to be looked at with clearer vision than saying “same sex attraction.” That’s another unfortunate euphemism; male bonding with brotherly love even at a David-Jonathan level (they even bought garments for one another) is NOT NOT NOT (a million times NOT) the condition in mind here. Where the glory goes is what makes the difference. When the glory goes to the devil you get violence and buggery, what is commonly called “homosexuality.” When the glory goes to God it’s all on the up and up and there’s no sexual perversion at all; the men if anything will encourage one another to be better husbands to any wives, not worse ones.
The two are the same and if one believes his mind and soul has drifted into evil he must fervently pray and confess his sinful thought and/or actions.