https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90508
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-04-03 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Reduced testcase: ``` template <class b> struct a { virtual b g() { return 0; } }; a<void> t; ``` Note at first this seemed like a regression but in GCC 7 and before, the line for the first required at was pointing to the last line of the file, now it points to the first virtual function in the class.