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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that even before any kind of folding calls to static member
functions have the object on which it is called removed.  So, if we'd want to
consider those still be different by -Wduplicated-branches, we'd need to
preserve that object somewhere (say in some IFN/stmt kind that would consume
the object address, perhaps added only if -Wduplicated-branches is used, and
then make sure to throw it away during gimplification).

Reply via email to