https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83705
--- Comment #1 from Janne Blomqvist <jb at gcc dot gnu.org> ---
> which makes sense for variables, but IMO not for parameters.
I agree, that's why a few lines before that block checking the size limit we
have:
/* For further simplification, we need the character string to be
constant. */
if (e->expr_type != EXPR_CONSTANT)
return NULL;
