This is in fact the same as item 611376, but now being observed in version 10.0.30319.1 RTMRel.We have this template:template<int Degree>struct CPowerOfTen { enum { Value = 10 * CPowerOfTen<Degree - 1>::Value };};template<>struct CPowerOfTen<0> { enum { Value = 1 };};and we instantiate it like this:int res = CPowerOfTen<-1>::Value;//note -1 hereres;When this code is compiled the compiler emits the following console output:1> AnalyzeTest.cpp1>AnalyzeTest.cpp(46): fatal error C1001: An internal error has occurred in the compiler.1> (compiler file 'msc1.cpp', line 1411)and then a message box is spawned (attached) that blocks cl.exe execution.This is a major problem - the compiler gets unusable in daily builds because it requires operator intervention to continue. The compiler can issue an internal error once in a while, but it should do do into the console output only and then end without any message boxes. In no event should the compiler spawn message boxes - all top level exceptions should be caught and printed to the console and then suppressed and the compiler should just exit. A process dump is also attached.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results