[Bug c++/78391] g++ (any version) at O0 (for O1, O2, O3 is ok) doesn't warn when class members are used uninitialized.
lucanus81 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 17 10:08:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78391
--- Comment #2 from Luca Stoppa <lucanus81 at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> -Wuninitialized requires optimization to handle this case.
I see thanks. Considering that I found this bug in our unit tests, I'll simply
add -O1 in order to avoid in the future this issue in our code.
More information about the Gcc-bugs
mailing list