https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127464
Josef Melcr <jmelcr at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |17.0
Assignee|unassigned at gcc dot gnu.org |jmelcr at gcc dot
gnu.org
--- Comment #7 from Josef Melcr <jmelcr at gcc dot gnu.org> ---
(In reply to Drea Pinski from comment #6)
> Notice empty loop iterating on decl_type_args but then does nothing.
> Also:
> if (stdarg_p (decl_type))
> {
> warning_at (DECL_SOURCE_LOCATION (decl), OPT_Wattributes,
> "%qE attribute cannot be used on variadic functions",
> name);
> *no_add_attrs = true;
> return NULL_TREE;
> }
> is checked twice :).
>
> Also this function is NOT a stdarg_p but an odd one.
I thought I got rid of that loop :) But yes, that shouldn't be there. I'll have
a look, but I think this should be fixed with a simple null check.