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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The missing warning is the same as PR 29593


> Yet it works fine when compiling in -std=c++23

C++23 changed the lifetime of the temporaries inside a range for.

*** This bug has been marked as a duplicate of bug 29593 ***

Reply via email to