A giant planet, which should not exist according to planet formation theory, has been discovered around a distant star.