https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83230
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- As it says at https://gcc.gnu.org/bugs/ ... "Before reporting that GCC compiles your code incorrectly, compile it with gcc -Wall -Wextra and see whether this shows anything wrong with your code."