https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80439
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Hmm, I think it would make sense if lambdas (and nested functions) "inherit" both target and optimize attributes from their parents.