[Bug c++/60625] attributes on template member function definition inside class definition not supported

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 10 07:17:41 GMT 2021


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.


More information about the Gcc-bugs mailing list