I suspect this to be more of a compiler issue rather than anything to do with the code itself. I imagine some internal compiler table being overflowed that can cause this problem. I may be wrong.