https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49974
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, I think so. The bug is returning a reference (indirectly) bound to a local, so I don't see a reason to have a different warning.