https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117155
--- Comment #3 from Dimitry Andric <dimi...@unified-streaming.com> --- (In reply to Jonathan Wakely from comment #1) > (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 Ah I had not noticed that. I bumped into the warning when using Ubuntu 24.04's g++-14 package, which is version 14.0.1 20240412. But it's indeed marked experimental, still. In any case, maybe this would be good to merge to the gcc-14 branch, then.