https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:30c18bbfed2fae5ff89841172553951a74125f8e commit r11-9226-g30c18bbfed2fae5ff89841172553951a74125f8e Author: Richard Biener <rguent...@suse.de> Date: Fri Oct 15 08:41:57 2021 +0200 ipa/102762 - fix ICE with invalid __builtin_va_arg_pack () use We have to be careful to not break the argument space calculation. If there's not enough arguments just do not append any. 2021-10-15 Richard Biener <rguent...@suse.de> PR ipa/102762 * tree-inline.c (copy_bb): Avoid underflowing nargs. * gcc.dg/torture/pr102762.c: New testcase. (cherry picked from commit 11a4714860d2df6ba496d55379e7dc702d5fc425)