https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71463
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Avoid decltype in that case, or use decltype on some other function that has
the same arguments as malloc and same return value, just not such attributes.
void *my_malloc (size_t);
... decltype (my_malloc) ...