[Bug c++/62285] const reference binding to temporary when using -fPIC

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 27 15:33:00 GMT 2014


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The program has undefined behaviour, the reference returned from std::min is
bound to a temporary which no longer exists.



More information about the Gcc-bugs mailing list