title: Segmentation fault (core dumped) when using avx on an array allocated with new[]
body: <p>When I run this code in visual studio 2015, the code works correctly.But the code generates the following error in codeblocks : Segmentation fault(core dumped). I also ran the code in ubuntu with same error.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;immintrin.h&gt;
  
  struct INFO
  {
      unsigned int id = 0;
      __m256i temp[8];
  };
  
  int main()
  {
      std::cout&lt;&lt;"Start AVX..."&lt;&lt;std::endl;
      int _size = 100;
      INFO  *info = new INFO[_size];
      for (int i = 0; i&lt;_size; i++)
      {
          for (int k = 0; k &lt; 8; k++)
          {
              info[i].temp[k] = _mm256_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
                  20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
  
          }
      }
      std::cout&lt;&lt;"End AVX."&lt;&lt;std::endl;
      return 0;
  }
  </code></pre>