How to crash your compiler

Posted on:October 31 2008

An unusual link from me, but this thread in the OGRE forum is great: Shortest way to crash the Visual Studio compiler. Best find so far:

enum{}(

Didn't know there were so many and simple ways to make the compiler crash. Great :)





Comments:


omg i'm going to try this!
Virion
Quote
2008-10-31 20:40:00


Today I was crashing VS2005 because I didn't dispose of a timer properly. I'd open the control in the designer and then close it, only to have the IDE crash a few seconds later. When the timer event was triggered after I had closed the designer a null exception got thrown and killed Visual Studio.
Michael
Quote
2008-11-01 04:45:00


works as expected on GCC for me, no crash:


# cat test.cpp
enum{}(

# gcc -o test test.cpp
test.cpp:1: error: expected unqualified-id at end of input
test.cpp:1: error: expected `)' at end of input
Gothi[c]
Quote
2008-11-01 15:28:00


Add comment:


Posted by:


Enter the missing letter in: "Inte?national"


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons