https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65244
--- Comment #4 from Ulf Magnusson <ulfalizer at gmail dot com> --- Created attachment 34894 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34894&action=edit -Wmaybe-uninitialized-warning with -Og with GCC 4.9.1 The testcase was in the comment. I'm attaching it. I don't have access to GCC 5.0. Perhaps the behavior changed between GCC 4.9.1 and that version.