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/78666] conflicting attribute alloc_size accepted


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

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
The following nonsensical declaration is also not diagnosed:

  void __attribute__ ((alloc_align (1))) f (void*);

The attribute handler should check that the referenced argument has integer
type and that the function returns a pointer.

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