]> 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>
Tue, 30 Aug 2022 14:17:07 +0000 (16:17 +0200)
commitbd2bc5f78d5a423a6e0537748b01ca45edbc75e5
tree6348eedd6ce8ff580ebd08b6a76799ce5434f31b
parent29dfe1cacadd2a47b4e5b1cab11bd7263fe211c9
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.

(cherry picked from commit 33f24eb58748e9db7c827662753757c5c2217eb4)
gcc/fortran/parse.cc
gcc/testsuite/gfortran.dg/gomp/strictly-structured-block-4.f90 [new file with mode: 0644]