VC8 Crash Bug

The following code sample is not valid code, and is not intended to compile cleanly. It does, however, crash the VC8 compiler. The compiler spits out all of its error information and apparently finishes the whole compile process before crashing, but at the end it does crash (Windows pops up an error reporting dialog and everything).



template<typename T> struct test
{
    template<typename T>
    {
    }
    operator T() { return 0; }
};

int main()
{
    test<
int> x;
    x = 1;
    return 0;
}


 
While this isn't a devastating bug as such, since it only afflicts a peculiar sort of invalid code, I figured that the compiler shouldn't crash on any input and that you guys would like to know about it.


Answer this question

VC8 Crash Bug