https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71844
--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> --- Jakub, this code is taken verbatim from the openmp-examples document. Should we report it at their github issue tracker? The example in their public git has always been without the A[0:4] map on 'omp target' as quoted by Eugene. GCC's testcase, on the other hand, had the map clause from day 1. This is a bit strange; assuming GCC didn't change the example code when importing, it suggests that the published openmp-examples text changed the example after GCC imported an earlier version.