Fortran/OpenMP: Fix var-list expr parsing with array/dt
authorTobias Burnus <tobias@codesourcery.com>
Wed, 28 Apr 2021 20:35:06 +0000 (22:35 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 28 Apr 2021 20:36:30 +0000 (22:36 +0200)
commite4aefface2a0e34d84b85844b11652eb28f2cf0c
treecdb8f0128dd8cd0e8438d3ca4de60c017ea85d72
parentc99f3747131377956e3bd8e393911c959ef5ff34
Fortran/OpenMP: Fix var-list expr parsing with array/dt

gcc/fortran/ChangeLog:

* openmp.c (gfc_match_omp_variable_list): Gobble whitespace before
checking whether a '%' or parenthesis-open follows as next character.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/map-5.f90: New test.
gcc/fortran/openmp.c
gcc/testsuite/gfortran.dg/gomp/map-5.f90 [new file with mode: 0644]