title: GoogleTest C++ application crashes defining a method
body: <p>I'm developing a GoogleTest application under Visual Studio 2017 using CMake.</p>
  
  <p>The following code compiles and links but if any test is defined then raises an std::bad_alloc exception on the TEST macro.</p>
  
  <pre><code>#include &lt;gtest/gtest.h&gt;
  
  TEST(WasapiSource_Test, test) {  // &lt;--- Crashes here with std::bad_alloc
  }
  
  int main(int argc, char** argv) {
      ::testing::InitGoogleTest(&amp;argc, argv);
      return RUN_ALL_TESTS();
  }
  </code></pre>
  
  <p>Reoving the test the application runs without error.</p>