https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120865
--- Comment #4 from Benjamin Schulz <schulz.benjamin at googlemail dot com> --- Note that also the values in the last computation are wrong. I can, however, make them correct by writing #pragma omp target parallel for device(devicenum) or #pragma omp target teams distribute parallel for device(devicenum) in line 5203 of mdspan_omp.h i do not know why this is so since this is an outer loop which should be independent for every outer iteration....