Paul pronounces the anathema on another gospel; Trent, on justification by faith alone (1547)
“But though we, or an angel from heaven, preach any other gospel unto you than that which we have preached unto you, let him be accursed” (Gal 1:8): Paul writes it against those who added the works of the law to faith in Christ. Trent anathematized whoever should say that the ungodly is justified by faith alone, or by the sole imputation of the righteousness of Christ (session 6, canons 9 and 11).
Rome answers that it does not condemn faith, but a faith without charity and without cooperation, as the canons themselves say; and in 1999 the Joint Declaration said that those condemnations do not reach the Lutheran doctrine set out in it. But it withdrew no canon, and added that this “does not take anything away from the seriousness of the condemnations”. In our judgment, if justification by faith, without works, is the gospel of Paul, Trent's anathema falls on that gospel, and that of Galatians on whoever anathematizes it.