Catechism of the Council of Trent
1125
Part II. Extreme Unction
The Person Anointed Must Have Attained The Use Of Reason
Furthermore, all those who have not the use of reason are not fit subjects for this Sacrament; and likewise children who, having committed no sins, do not need the Sacrament as a remedy against the remains of sin. The same is true of idiots and insane persons, unless they give indications in their lucid intervals of a disposition to piety, and express a desire to be anointed. To persons who from their birth never enjoyed the use of reason this Sacrament is not to be administered; but if a sick person, while in the possession of his faculties, expresses a wish to receive Extreme Unction and afterwards becomes delirious he is to be anointed.