I wish to quote from St. Robert Bellarmine who gets quoted often:
quote
Finally, the Holy Fathers teach unanimously not only that heretics are outside of the Church, but also that they are ipso facto deprived of all ecclesiastical jurisdiction and dignity. St. Cyprian (lib. 2, epist. 6) says: “We affirm that absolutely no heretic or schismatic has any power or right”; and he also teaches (lib. 2, epist. 1) that the heretics who return to the Church must be received as laymen, even though they have been formerly priests or bishops in the Church. St. Optatus (lib. 1 cont. Parmen.) teaches that heretics and schismatics cannot have the keys of the Kingdom of Heaven, nor bind nor loose. St. Ambrose (lib. 1 de poenit., ca. 2), St. Augustine (in Enchir., cap 65), St. Jerome (lib. cont. Lucifer.) teach the same.
quote.
Despite all the heavy weights in the above paragraph, St. Robert is wrong in this statement; so are his cohorts. SThe power of Order is not in anyway constrained by the personal sin of the ordained. Maybe Robert and the others are redeemed elsewhere in the statement, but not in the piece I have cited.
Bishops who have been excommunicated formally by the Church have gone out and ordained priests and bishops. Such ordinations are valid, but illicit.
This is why the whole matter is pure nonesense. A laicized priest (someone who has been returned to the lay state) can say mass, and absolve from sin, and anoint in cases of emergencies. It is in canon law.
The Holy Father is head of the Church. He is not controlled by any code in the Code of Canon Law. He can change the law at will.
We have not had a pope of those we are considering, from Pio Nono, thru Benedict XVI who has committed formal heresy, and even if he did, it would not matter. As a bishop, he could consecrate other bishops; as a bishop he could ordain other priests. He does not lose the power of the sacrament of Orders.
Likewise a fallen away priest, who has been excommunicated, can in an emergency absolve from sin, and anoint the sick (moribundi); he also retains he power to ‘say Mass’, hear confession and absolve from sin; and baptise (although anyone can in the case of emergency.
peace