https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95277
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |c Keywords| |diagnostic --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- else if (! VAR_OR_FUNCTION_DECL_P (decl) && TREE_CODE (decl) != FIELD_DECL) { error ("alignment may not be specified for %q+D", decl); *no_add_attrs = true; } Here we have PARM_DECL which is not VAR or FUNCTION DECL. This is at least a diagnostic issue where we should at least say it is not allowed for arguments.