Compiler switch to force local variable initialization in C++
<p>All knows that POD local variables are uninitialized by default in C++. But may be there is some compiler with some magical switch that force local variable initialization to zero? I am bored assigning all local int's and private class fields to zero. May be some gnu extension in gcc or clang has it... </p>

<p>If no I would like to patch it and provide this human friendly switch to clang. This stupid undefined behavior spoiling our life! It is a good  time to say enough to that long bearded standard writers!</p>

<p><strong>PS:</strong> To those who do not see any problem in = 0 rule. I would like to ask you few questions. When you write a string variable do you assign it to ""? Or may be you assigning vector&lt;> to {}? Do you assign any smart pointers to zero? Why you assigning int to zero? Why should I take care of this? And only few compilers will issue a warning if you forget to explicitly initialize private field in a class constructor, and truly speaking you shouldn't even care to write this constructors, specially for structs! huh!</p>

<p><strong>PPS:</strong> We found a switch -finit-local-zero for gcc. But it works only for Fortran code.</p>
