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; } |

VC8 Crash Bug
jbujold
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackId=FDBK47988
Done and done. Thanks for the quick reply.
Mark Kucera
Yes, I was able to reproduce the internal compiler error.
Could you pleas log a bug at http://lab.msdn.microsoft.com/productfeedback/default.aspx so that the owners would take a look
Thanks in advance for taking the time to report the issue!
Also, please reply back with the bug link so that other on the forums could check the status of the bug.
Thanks, Ayman Shoukry VC++ Team