https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116933
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- But that's not sufficient and passing LOC to build_string_literal does not change anything either since gimplify_arg has this: /* FIXME diagnostics: This will mess up gcc.dg/Warray-bounds.c. */ /* Make sure arguments have the same location as the function call itself. */ protected_set_expr_location (*arg_p, call_location);