salam alaykum jazak Allah for the question,
the child who is born out of wedlock is not cursed etc, as Allah (swt) says:
“No soul shall bear the burden of another.” [Sûrah al-Najm: 38]
As for inheritance the child is not able to inherit from the father according to majority of the scholars but is able to inherit from the mother.
And Allah knows best.