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/7 Regression] Spurious warning and crash when returning a reference from lambda


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

--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> ---
But as Jason said in comment #4, (IIUC) the test case never compiled correctly
in any gcc version.  It was marked a regression only because
-Wreturn-local-addr now deliberately returns null but arguably that's not a
regression either.

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