https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90448
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:6051af8e3db9e6cea79d0e86da0e0dad286f7e4e commit r10-9426-g6051af8e3db9e6cea79d0e86da0e0dad286f7e4e Author: Eric Botcazou <ebotca...@adacore.com> Date: Tue Mar 9 16:12:22 2021 +0100 Fix internal error on lambda function This boils down to the RTL expander trying to take the address of a DECL whose RTX is a register. gcc/ PR c++/90448 * calls.c (initialize_argument_information): When the argument is passed by reference, do not make a copy in a thunk only if the argument is already in memory. Remove redundant test for the case of callee copy.