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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++
   Last reconfirmed|                            |2021-08-25
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
There's nothing the middle end can do to warn because the front end emits code
to zero-initialize the struct/class first and only then to use the value of the
zero-initialized member to [re]initialize it.  The detection needs to happen in
the front ends (both C and C++).

Reply via email to