https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107633
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I thought this had been fixed by commit 32a06ce38a38bf37db468f0e6c83520fcc221534 Author: Marek Polacek <pola...@redhat.com> Date: Tue Nov 1 17:05:52 2022 -0400 c++: Quash -Wdangling-reference for member operator* [PR107488] -Wdangling-reference complains here: std::vector<int> v = ...; std::vector<int>::const_iterator it = v.begin(); while (it != v.end()) { const int &r = *it++; // warning } is the operator* here a non-member function?