It happened to me, I sat right on a gum at a concert. I thought it ruined my pants. Tried to scrub it with a knife off, washed it afterwards... NO USE!
Until I came across a new method to clean those stains:
Step 1: Useless normal washing
I was considering to throw them, yet they were too comfortable to give up.