https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116731
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:179dc0f0fe01012675c1b430591b9891ce96c26e commit r13-9204-g179dc0f0fe01012675c1b430591b9891ce96c26e Author: Marek Polacek <pola...@redhat.com> Date: Thu Nov 21 11:25:46 2024 -0500 c++: tweak for -Wrange-loop-construct [PR116731] This PR reports that the warning would be better off using a check for trivially constructible rather than trivially copyable. LLVM accepted a similar fix: https://github.com/llvm/llvm-project/issues/47355 PR c++/116731 gcc/cp/ChangeLog: * parser.cc (warn_for_range_copy): Check if TYPE is trivially constructible, not copyable. gcc/testsuite/ChangeLog: * g++.dg/warn/Wrange-loop-construct3.C: New test.