title: Memory Sanitizer
body: <p>I am playing around with Memory Sanitizer with Clang 3.7.0 on Ubuntu 14.04. The following code does work perfectly:</p>
  
  <pre><code>#include &lt;cstdio&gt;
  
  int main() {
    double ans;
    printf("Hello World: %f\n", ans);
  
    return 0;
  }
  </code></pre>
  
  <p>when compiled with</p>
  
  <pre><code> clang++ -g -O1 -fsanitize=memory -fsanitize-memory-track-origins=2 -fomit-frame-pointer sanitize.cpp -o sanitize
  </code></pre>
  
  <p>I was expecting an error. Doesn't Memory Sanitizer catch the fact that ans was not initialized?</p>
  
  <p>Thanks for your help.</p>