https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110756
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testsuite-fail Component|c++ |testsuite Target Milestone|--- |14.0 Last reconfirmed| |2023-07-20 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. When I looked into this, I got the feeling it was a testsuite issue in that the error message changed slightly. Before that change we had got: ``` <source>:8:22: error: 'int' is not a class, struct, or union type 8 | for (typename T::X i = 0; i < 100; ++i) /* { dg-error "'int' is not a class, struct, or union type|expected iteration declaration or initialization" } */ | ^ <source>:8:22: error: 'int' is not a class, struct, or union type <source>:8:22: error: 'int' is not a class, struct, or union type <source>:8:3: error: expected iteration declaration or initialization 8 | for (typename T::X i = 0; i < 100; ++i) /* { dg-error "'int' is not a class, struct, or union type|expected iteration declaration or initialization" } */ | ^~~ ``` And afterwards: ``` <source>:8:22: error: 'int' is not a class, struct, or union type 8 | for (typename T::X i = 0; i < 100; ++i) /* { dg-error "'int' is not a class, struct, or union type|expected iteration declaration or initialization" } */ | ^ <source>:8:3: error: invalid type for iteration variable 'i' 8 | for (typename T::X i = 0; i < 100; ++i) /* { dg-error "'int' is not a class, struct, or union type|expected iteration declaration or initialization" } */ | ^~~ ``` The afterwards seems like a better error message really and no longer repeated too.