Compiling error going from OSX to windows

I am having a strange issue with my program that when i move it from osx to windows it won't compile. It will compile fine on the mac but on windows it gives me an error inside of a switch statement (error: jump to case label...). I can't posted any code unfortunately. Has anyone experienced problems when going between systems?

I believe the Mac and Windows distributions have different gcc versions, which would probably explain this. Can you post a minimal example that reproduces the problem?