https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117155
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Dimitry Andric from comment #0) > After r15-3941-g2531f014fb2364 ("c++: Implement -Wdangling-reference I think the correct commit is r13-3511-gd2249cd9adf5ae638577139177a50f7e62d8abd9 > [PR106393]") for 106393, we are now seeing bogus instances of this new > warning. Since the commit message marks this as an "experimental warning", I > would suggest to not put this under -Wall, at least until it is no longer > experimental, and false positives have been ferreted out. It was already taken out of -Wall, see r15-2703-g5ebfaf2d4994c1