I am using MinGW and the compilation flags (enabling a more efficient error detection) didn't accept code written this way (using things such as goto).