https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100791
--- Comment #6 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:bfd841cacd6f0a641413912cea39a4561c73f0cb commit r11-8578-gbfd841cacd6f0a641413912cea39a4561c73f0cb Author: Richard Biener <rguent...@suse.de> Date: Fri May 28 13:31:35 2021 +0200 ipa/100791 - copy fntype when processing __builtin_va_arg_pack This missing copying exposed a type mismatch in the IL. 2021-05-28 Richard Biener <rguent...@suse.de> PR ipa/100791 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack copy fntype from original call. * gcc.dg/pr100791.c: New testcase. (cherry picked from commit 359c0a86e2974a9f3036bc05b6e6c661f2c463cf)