https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81605
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- In my view, whenever it's meaningful to act on an attribute for a call via a function pointer (e.g. format, format_arg, const, pure, noreturn, ...), the attribute should apply to the type internally so that it can indeed work with function pointers (this does not assert what decltype does or does not do with such an attributed function, however).