This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops
- From: "winter-gcc at bfw-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Mar 2016 09:26:08 +0000
- Subject: [Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops
- Auto-submitted: auto-generated
- References: <bug-65178-4 at http dot gcc dot gnu dot org/bugzilla/>
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.