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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Do we want to warn about this kind of stuff even if there are side-effects in
the first rhs?  Obviously we must not warn if the var is used in the second
rhs, or if the var is volatile/atomic, or if assignment operator is overloaded.
The question is where to warn, warning in the FE would have the advantage that
the rhs's are still fairly non-optimized and thus possible uses of the var in
them aren't optimized away yet.

Reply via email to