https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60228
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I would not call this valid, because OpenMP 4.0 doesn't support C++11, thus using C++11 constructs inside of OpenMP constructs is invalid.