]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran/OpenMP: Fix strictly structured blocks parsing
authorTobias Burnus <tobias@codesourcery.com>
Thu, 25 Aug 2022 06:34:03 +0000 (08:34 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 25 Aug 2022 06:34:40 +0000 (08:34 +0200)
commit33f24eb58748e9db7c827662753757c5c2217eb4
tree08228575d3b67dad3f6bd3253bf2f6fa39c887c5
parentb169b67d7dafe2b786f87c31d6b2efc603fd880c
Fortran/OpenMP: Fix strictly structured blocks parsing

gcc/fortran/ChangeLog:

* parse.cc (parse_omp_structured_block): When parsing strictly
structured blocks, issue an error if the end-directive comes
before the 'end block'.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/strictly-structured-block-4.f90: New test.
gcc/fortran/parse.cc
gcc/testsuite/gfortran.dg/gomp/strictly-structured-block-4.f90 [new file with mode: 0644]