https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96295
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:8b75204b27cb2a296ac329d48918992b4053c61e commit r11-3237-g8b75204b27cb2a296ac329d48918992b4053c61e Author: Martin Sebor <mse...@redhat.com> Date: Wed Sep 16 13:23:31 2020 -0600 Work harder to avoid -Wuninitialized for objects of empty structs (PR middle-end/96295). Resolves: PR middle-end/96295 - -Wmaybe-uninitialized warning for range operator with reference to an empty struct gcc/ChangeLog: PR middle-end/96295 * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid warning for objects of empty structs gcc/testsuite/ChangeLog: PR middle-end/96295 * g++.dg/warn/Wuninitialized-11.C: New test.