https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100732
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:b9edb8fb8202dc6907f69094a8b2a621840174e1 commit r11-8604-gb9edb8fb8202dc6907f69094a8b2a621840174e1 Author: Martin Sebor <mse...@redhat.com> Date: Thu Jun 17 12:08:15 2021 -0600 Backported from trunk: PR middle-end/100732 - ICE on sprintf %s with integer argument gcc/ChangeLog: PR middle-end/100732 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls with either source or destination argument of invalid type. * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking calls with arguments of invalid type. gcc/testsuite/ChangeLog: PR middle-end/100732 * gcc.dg/tree-ssa/builtin-snprintf-11.c: New test. * gcc.dg/tree-ssa/builtin-snprintf-12.c: New test. * gcc.dg/tree-ssa/builtin-sprintf-28.c: New test. * gcc.dg/tree-ssa/builtin-sprintf-29.c: New test. * gcc.dg/uninit-pr100732.c: New test.