Giant stars and the ultimate fate of the sun