https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112487
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5021fa7076acd5a987362c8695ae3ebeff877d02 commit r14-5392-g5021fa7076acd5a987362c8695ae3ebeff877d02 Author: Richard Biener <rguent...@suse.de> Date: Mon Nov 13 09:24:08 2023 +0100 middle-end/112487 - inline and parameter mismatch When passing an aggregate to a implicitly declared function that's later declared as receiving a register type we can run into a sanity assert that cannot hold for such gross mismatches. Instead of asserting avoid emitting a debug temp that's invalid. PR middle-end/112487 * tree-inline.cc (setup_one_parameter): When the parameter is unused only insert a debug bind when there's not a gross mismatch in value and declared parameter type. Do not assert there effectively isn't. * gcc.dg/torture/pr112487.c: New testcase.