On 8/7/21 3:02 PM, Bruno Haible wrote:
The GCC documentation [1] says that the attribute 'malloc (deallocator, 1)'
does not work on inline functions. IMO, this restriction is not tenable in
the long run (because the semantics of a function don't depend on whether
it is inline or not, and because in C++ the majority of all functions is
inline).

Yes, this problem also annoyed me. I uninlined the relevant functions, but that's not always a reasonable thing to do, performance-wise.

I submitted a GCC bug report for this issue, here:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101829

Reply via email to