https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63518
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC uninit warning for decls whos address has been taken is weak which is the first one GCC does not warn. The second one should not be warned due to C++17 order of execution rules changes (there is no reason not apply them to earlier C++ versions really).