Novus Ordo Watch has a good article on Pope John XXII, showing that accusations of him having committed heresy are dubious since the issue he brought up was open to theological debate. Pope John XXII is often used by those who want to assert that a pope can fall into heresy as an example of this case, and many are drawing parallels to him and Bergoglio.