title: Compiler crashes when building OpenCV 3.0 with VC14 platform toolset
body: <p>I am trying to compile the latest version of OpenCV (3.0) using the Visual Studio 2015 C/C++ compiler.</p>
  
  <p>I have downloaded the latest source code from GitHub and generated the solution with CMake 3.4.0-rc1. I only want to build the library <strong>without any additional features</strong> (Contrib module, CUDA, VTK, OpenNI, etc.) </p>
  
  <p>After I generate the solution (CMake doesn't show any errors) I'm trying to build it with Microsoft Visual Studio 2015. After the build starts, a window pops-up telling that the <strong>"Microsoft C/C++ compiler driver has stopped working"</strong> and it closes automatically in a sort period.</p>
  
  <p><a href="https://i.stack.imgur.com/VlJkn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VlJkn.png" alt="Compiler error"></a></p>
  
  <p>When the build stops, I get the following errors:</p>
  
  <p><a href="https://i.stack.imgur.com/iYcNY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iYcNY.png" alt="enter image description here"></a></p>
  
  <p>My <strong>bin</strong> and <strong>lib</strong> folders are <strong>empty</strong> (no dlls/libs are generated).</p>
  
  <p>When the compiler crashes, in the Output window I get the following error:</p>
  
  <pre><code>1&gt;D:\OPENCV-BUILD-VC14\cmake-output-3\modules\core\opencv_core_pch.cpp : fatal error C1001: An internal error has occurred in the compiler.
  1&gt;  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 246)
  1&gt;   To work around this problem, try simplifying or changing the program near the locations listed above.
  1&gt;  Please choose the Technical Support command on the Visual C++
  1&gt;   Help menu, or open the Technical Support help file for more information
  </code></pre>
  
  <p>Any help is appreciated, thank you in advance! :)</p>