Skip to content

Instantly share code, notes, and snippets.

@Arminius
Created June 29, 2016 11:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arminius/e83d85294e5952b166b6caf22edb24c6 to your computer and use it in GitHub Desktop.
Save Arminius/e83d85294e5952b166b6caf22edb24c6 to your computer and use it in GitHub Desktop.
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment