Theoretically you could even have a donut shaped planet orbiting a young toroidal donut shaped star :).
The author of this paper suggests you could have stable toroidal shapes forming around a central star : General Relativistic Structure of Star Toroidal Systems (1992).
- not true it's a toroidal accretion region around a star. And rather early simulations.