@Edward01
Well it shouldn't be. Although people mistakenly write them sometimes, infinite loops are in themselves useful and there's very little you can get done without them. That's how your OS works, Hey, that's how the human heart works :-)
Even an infinite recursion should only crash at run-time, although a clever compiler would warn about it.
If a compiler does crash because of an infinite loop, I would point and laugh at it.
It could be @OP has written some code that's made the compiler throw a wobbly - that's a compiler bug and should be fixed by the compiler vendor. No doubt re-writing the code or changing compilation options will avoid the problem.
Unfortunately, C1001 (in Visual Studio) is not just one thing so @OP can't be helped without more information.