https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89764
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Summary|[12/13/14/15 Regression] |[8 Regression] ubsan
|ubsan diagnostic on generic |diagnostic on generic
|lambdas decayed to function |lambdas decayed to function
|pointers |pointers
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=86943
Resolution|--- |FIXED
Keywords| |fixed-but-no-testcase
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So fixed for GCC 9. Looks like only a simplified part of PR 86943 was
backported but that was not enough and introduced this issue.