[Bug tree-optimization/18501] [6/7/8/9 Regression] Missing 'used uninitialized' warning (CCP)

mickey.veksler at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 24 09:59:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501

Michael Veksler <mickey.veksler at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mickey.veksler at gmail dot com

--- Comment #84 from Michael Veksler <mickey.veksler at gmail dot com> ---
Ping.  
At least -Wmaybe-uninitialized should emit warnings.

This still happens on the trunk (gcc version 9.0.0 20180723 (experimental)
(GCC-Explorer-Build)) :
  int f(int a)
  {
        int ret;
        if (a) {
                ret = 1;
        }

        return ret;
  }

No warning, including with  -Wmaybe-uninitialized. All other compilers warn
about this (at least clang and Visual C++).


More information about the Gcc-bugs mailing list