This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70121] [5/6 Regression] spurious warning and crash when returning a reference from lambda


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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-07
            Summary|spurious warning and crash  |[5/6 Regression] spurious
                   |when returning a reference  |warning and crash when
                   |from lambda                 |returning a reference from
                   |                            |lambda
     Ever confirmed|0                           |1

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
The wrong warning is old, but since gcc-5 we reuse that warning code to change
the return to null, which makes the issue much worse.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]