https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60279
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0 Status|NEW |RESOLVED Keywords| |diagnostic Resolution|--- |FIXED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- trunk <source>: In function 'f': <source>:5:19: warning: 's' is used uninitialized [-Wuninitialized] 5 | return g(s); | ^~~~ 7: <source>: In function 'f': <source>:5:19: warning: 's' is used uninitialized in this function [-Wuninitialized] return g(s); ^~~~ 5: <source>: In function 'f': <source>:5:19: warning: 's' is used uninitialized in this function [-Wuninitialized] return g(s); ^ So fixed in GCC 5. For the C++ front-end: 8: <source>: In function 'int f()': <source>:5:20: warning: 's' is used uninitialized in this function [-Wuninitialized] return g(s); ~^~~ 7: <source>: In function 'int f()': <source>:5:22: warning: 's' is used uninitialized in this function [-Wuninitialized] return g(s); ^