https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120953
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2025-07-04 --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- In cp_parser_init_declarator we've decided whether it's a range-for and still have the declspecs, so we could scan them at that point. pedwarn seems fine for this.