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.
Step 2: 2
Take a glass and fill a small part of it
Step 3: 3
Careful, use a cloth if the glass is to warm.
Step 4: 4
dip it in the warm vinegar
start to scrub the gum stain area.
Step 5: 5
After the pants dried up, you will notice that the chewing gum stain is gone.
MISSION ACCOMPLISHED! ;)