[Bug c++/100468] set_up_extended_ref_temp via extend_ref_init_temps_1 drops TREE_ADDRESSABLE

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 7 10:22:20 GMT 2021


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

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> ---
What I fear is that we have some temporary with a const initializer, extend its
lifetime by taking a reference, have another temporary with the same const
initializer, extend its lifetime by taking a reference and compare the
addresses of those two references.  As those are different temporaries, their
addresses should be different, shouldn't they?


More information about the Gcc-bugs mailing list