3 ms·
As far as I can tell GCC is still inferior when it comes to warning about uninitialized variables. Clang: https://godbolt.org/g/BVfy81 https://godbolt.org/g/BV
by anon1385 10y ago
As far as I can tell GCC is still inferior when it comes to warning about uninitialized variables.
Clang: https://godbolt.org/g/BVfy81 https://godbolt.org/g/BVfy81
GCC: https://godbolt.org/g/uIN1gG https://godbolt.org/g/uIN1gG
See the famous and now 12 years old GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501
- flamedoge 10y agojust curious, why can't one use use-def chains to detect uninitialized variables? Basically you want backward-all dataflow analysis with gen=use & kill=def...