https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79021
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.5 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes this was the same issue as PR 94742 . I will note in the original testcase, the f call inside h was not a depedent call would have been resolved and if you make it a depedent call, then you run into the same issue as the generic lambda. Or if you change the call to f inside the generic lambda to being non-depedent, you don't get the warning. So this is all fixed with a testcase added already.