Stock can be registered in the name of a person.
If it's registered in the name of a person, and that person dies, the heirs of the deceased will be the owners of the stock.
In many contries there is a death tax.
Inheritance tax will be calculated on the value of the stock.
You can find out more about this matter on the international law forum in the following countries: