https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89337
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- Thank you for the updated test case. The original looked similar to bug 86153 to me at first but then I decided it was different. The new test case is very close to the one in that bug, and is not diagnosed with the top of trunk anymore thanks to the fix in r267252. I think it's safe to resolve this as a duplicate of that bug. Let me add your test case to the test suite. (If the warning persists in your code even with the latest GCC 9.0 please reopen the bug with an updated test case.) *** This bug has been marked as a duplicate of bug 86153 ***