Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Arminius
Arminius / clcrash.cpp
Created June 29, 2016 11:02
Causes the VC++ compiler to crash with Visual Studio 2015 Update 3
class __declspec(dllimport) Foo {
public:
Foo(int x = 0);
virtual ~Foo();
};
int main()
{
Foo *arr = new Foo[1];
return 0;