https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100661
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Richard Biener from comment #5) > Can lambdas appear inside #pragma omp in C++? Since OpenMP 5.0 yes. Well, they could appear before as well, but OpenMP 4.5 didn't support C++11, so it wasn't really defined how it behaves. But I think lambdas are fine.