https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119119
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60665 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60665&action=edit reduced Finally was able to remove all of the lambdas and indirections.