https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103583
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-12-06 Severity|normal |enhancement --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #3) > Another option would be to do lookup for begin(a) and end(a) with errors > suppressed, and if they aren't found, issue a custom diagnostic saying > something like "no suitable begin/end pair available for range-based 'for' > loop". I think this is a good option. Confirmed.