Whether children should suffer any loss through being illegitimate?

Objections

Objection 1 : It would seem that children ought not to suffer any loss through being illegitimate. For a child should not be punished on account of his father's sin, according to the Lord's saying (Ezech. 18:20). But it is not his own but his father's fault that he is born of an unlawful union. Therefore he should not incur a loss on this account.
Objection 2 : Further, human justice is copied from Divine. Now God confers natural goods equally on legitimate and illegitimate children. Therefore illegitimate should be equalled to legitimate children according to human laws.