Pope John Paul II
Veritatis Splendor §68
Veritatis Splendor: Regarding Certain Fundamental Questions of the Church's Moral Teaching
68 Here an important pastoral consideration must be added. According to the logic of the positions mentioned above, an individual could, by virtue of a fundamental option, remain faithful to God independently of whether or not certain of his choices and his acts are in conformity with specific moral norms or rules. By virtue of a primordial option for charity, that individual could continue to be morally good, persevere in God's grace and attain salvation, even if certain of his specific kinds of behaviour were deliberately and gravely contrary to God's commandments as set forth by the Church. In point of fact, man does not suffer perdition only by being unfaithful to that fundamental option whereby he has made "a free self-commitment to God". With every freely committed mortal sin, he offends God as the giver of the law and as a result becomes guilty with regard to the entire law (cf. Jas 2:8-11); even if he perseveres in faith, he loses "sanctifying grace", "charity" and "eternal happiness". As the Council of Trent teaches, "the grace of justification once received is lost not only by apostasy, by which faith itself is lost, but also by any other mortal sin".
Source: Veritatis Splendor (Vatican.va)