capital gain treatment on the sale of inherited property via generalu skipping trust

How the property sold by second generation(grandchild) treated in a generational skipping trust when she /He sells the property? Capital gain should be paid by the grandchild???If so, what would be the basis of the property inherited?