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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=91225

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #4)
> (In reply to David Brown from comment #2)
> > Yes, "int x = x;" does give an unspecified value without a warning.
> 
> Really, not even one from -Winit-self?

Martin Sebor explains in bug 91225 that "int x = x;" by itself is eliminated as
unused; x would have to actually be used after that to get the -Winit-self
warning.

Reply via email to