title: Detect segmentation faults at compile time
body: <p>Can I detect a possible segmentation fault at compile-time?</p>
  
  <p>I understand the circumstance of a segmentation fault. But I am curious if GCC as a compiler has some flags to check for the basic scenarios resulting in segmentation faults.</p>
  
  <p>This would help enormously to take precautions before releasing a library.</p>