https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117437
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the lambda is required for the value-expr. Though maybe you can get a similar thing with nested functions but I have not tried.