https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61882
Oleg Endo <olegendo at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |olegendo at gcc dot gnu.org --- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> --- Note: not only attribute weak, but also other attributes. E.g. per-function optimize attribute in order to enable unrolling of all loops inside of the template function. An example where this can be useful is e.g. PR 54236 comment #6, operator + function.