https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109367
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Please file a different bug with your full testcase as I think decltype of a lamba is a type which has local linkage but I could be wrong.