https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105635
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52989 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52989&action=edit gcc13-pr105635.patch Only lightly tested so far. The function comment talks about pointers only, TREE_TYPE (TREE_TYPE (var)) means it would work only for pointers/references, array types and vector/complex somehow, but for vector/complex would certainly do something the code doesn't expect and for array types at least in C/C++ no arguments should have array type and the attribute is only done for c-family.