It definitely is the case that an exception is raised here. THe code is defended against this as you note. But really no exception should be raised. TO be investigated ... But this still will not explain the problem, and I am by no means sure the compilation of the compiler is 100% exception free, though it may be.