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

--- Comment #13 from Leon Winter <winter-...@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.

Reply via email to