dome light came on and now it won't turn off.
Check your door latches, one might just be dirty/corroded or it failed. Your car thinks one of the doors are open. I would spray some WD-40 in the car door latches, one at a time to see if you can get the light to go out.
Search Pontiac G6 Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Pontiac G6 Experts