C1001 internal Compiler error VS 2012 pro
-
Hi I have been getting an internal compiler for a "for(;;) statement I simplified it as much as possible till it looks like this
for (; i >= 0; i--, j--)
and I still get the error the code compiles in debug mode thanks
-
Hi I have been getting an internal compiler for a "for(;;) statement I simplified it as much as possible till it looks like this
for (; i >= 0; i--, j--)
and I still get the error the code compiles in debug mode thanks
When it compiles in debug builds, the compiler gets stuck during optimisation. See also the MSDN Fatal Error C1001[^]. It suggests to disable optimisation for the function or rewrite the code. With older VS versions I had such errors a few times and solved them always by re-ordering some code lines. As you already noticed, reducing (simplifying) the code may not help. Instead it might help to add code lines.
-
When it compiles in debug builds, the compiler gets stuck during optimisation. See also the MSDN Fatal Error C1001[^]. It suggests to disable optimisation for the function or rewrite the code. With older VS versions I had such errors a few times and solved them always by re-ordering some code lines. As you already noticed, reducing (simplifying) the code may not help. Instead it might help to add code lines.
-
Please show a few lines of code either side, plus the exact code that produces the error, and the exact and complete message.