This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/86483] alloc_size attribute does not work on functions returning a struct that contains the pointer


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

--- Comment #2 from gnzlbg <gonzalobg88 at gmail dot com> ---
The same applies to the alloc_align attribute.

It also does not seem possible to specify alloc_align for some flag parameter
that contains a masked alignment. For example:

smallocx_return_t je_smallocx(size_t size, int flags); 

where the alignment can be specified in some of the bits of flags.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]