Skip to content

Instantly share code, notes, and snippets.

@Arminius
Arminius / clcrash.cpp
Created Jun 29, 2016
Causes the VC++ compiler to crash with Visual Studio 2015 Update 3
View clcrash.cpp
class __declspec(dllimport) Foo {
public:
Foo(int x = 0);
virtual ~Foo();
};
int main()
{
Foo *arr = new Foo[1];
return 0;
You can’t perform that action at this time.