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.