https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82125
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2017-09-07 00:00:00 |2021-7-23 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang gives a reasonable error message: <source>:4:20: error: invalid range expression of type 'int *const'; no viable 'begin' function available for(auto e : r) {} ^ ~ 1 error generated. ASM generation compiler returned: 1