- Code: Select all
class {} (x);
And the shortest "crasher":
- Code: Select all
class{}(
Just 8 characters. I challenge you to crash VC++ with less than 8 chars
Moderators: Moderators, OGRE Team
class {} (x);class{}(
Kojack wrote:Just use this line (valid C++):
That's valid c++? What on earth is it supposed to do?
johnhpus wrote:I guess you mean the compiler has an error, or?
What version btw?
Kojack wrote:Just use this line (valid C++):
That's valid c++? What on earth is it supposed to do?
struct { int a; } x;

void f() {
typedef int SomeType;
int (x)[SomeType]; // no error from GCC!
}
class _{}(x);main(){_(x)[_];}

Bekas wrote:Just 8 characters. I challenge you to crash VC++ with less than 8 chars
enum{}(Berserker wrote:Bekas wrote:Just 8 characters. I challenge you to crash VC++ with less than 8 chars
- Code: Select all
enum{}(
I won![]()
![]()
P.S.: tested on VC2005/VC2008

Klaim wrote:Err....i don't understand...it don't crash here...
did you install the VS SP1? i did.



Users browsing this forum: No registered users and 2 guests