This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops


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

--- Comment #13 from Leon Winter <winter-gcc@bfw-online.de> ---
The incorrect warning is only displayed when using an optimization level better
than none (-O0) (this applies to your testcase and my real-world code). Your
minimized test case is already wrongfully blamed by gcc-4.8.

My non-testcase real-world code (C++ in -O1 and -O2 and -O3) is even more
exciting since g++-4.8 complains, g++-4.9 does not but g++-5 complains again.
So there might be a recurring regression in place.

I will try to track down the regression from 4.9 to 5.3 since it is the latest
version.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]