This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/86483] alloc_size attribute does not work on functions returning a struct that contains the pointer
- From: "gonzalobg88 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jul 2018 09:15:30 +0000
- Subject: [Bug c++/86483] alloc_size attribute does not work on functions returning a struct that contains the pointer
- Auto-submitted: auto-generated
- References: <bug-86483-4@http.gcc.gnu.org/bugzilla/>
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.