https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60625
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-12-10 Ever confirmed|0 |1 Keywords| |accepts-invalid Status|UNCONFIRMED |NEW --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, the non-template case should have been rejected. Note if you use the C++11 style attribute [[gnu::always_inline]], GCC does warn about it when used after the function declaration and such.