https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
--- Comment #21 from 康桓瑋 <hewillk at gmail dot com> --- (In reply to Jonathan Wakely from comment #20) > Does it matter? By design, ranges::begin does the same things as range-based > for (handles arrays first, then looks for member begin(), then looks for ADL > begin). FYI: https://stackoverflow.com/questions/79261063/in-what-situations-does-rangesfor-each-work-but-for-auto-elt-rg-fail/79262269#79262269