[Bug middle-end/48001] inconsistent warning within loop always taken and outside the loop
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 26 01:41:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48001
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to jerome.borme from comment #3)
> The initialization of sum_f has been forgotten, but no warning is issued,
> although sum_f is used in the loop.
I get in 6.0 even with -O1:
test.c:12:3: error: ‘sum_f’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
so it seems this got fixed somehow. Please reopen if this is not the case.
More information about the Gcc-bugs
mailing list