Just as Karol Wojtyla was a heretic prior to his apparent election</a>, so were all the men claiming to be Cardinals heretics for their participation in Vatican II.
Canon 188, paragraph 4 provides that heretics resign all offices in the Church and such resignation is accepted by operation of law without any need of declaration. This follows the principle that heretics depart from the Catholic Church.