http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57917

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |manu at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Nishant, this is not a good testcase because A::isABC is not used. Even if you
call a.setABC(false), isABC is only assigned but its uninitialized value is not
used. In fact, in your testcase, since 'a' is never used before the program
finishes, GCC may just delete it and return -1.

Nonetheless, there are many testcases for which GCC fails to provide a warning,
check those PRs (bug reports) and make sure that your real testcase is not
covered by any of them before opening a new PR. You can find a list of
-Wuninitialized PRs here: http://gcc.gnu.org/PR24639

You could add yourself to the CC list of those PRs if you are interested in
tracking progress, but more testcases are not really needed. What is needed is
people willing to work on fixes.

Reply via email to