diff options
author | Harald Anlauf <anlauf@gmx.de> | 2022-05-08 22:04:27 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2022-05-09 20:14:33 +0200 |
commit | 8c97f7fd2382aa77f36567207e949447db90a1fb (patch) | |
tree | 4f9e0d398c2a7059e7a102b47e5f46b0f8b960c3 /gcc/cp/optimize.cc | |
parent | 8a39c7c128dbf4405821778724c5a1017ab12e06 (diff) | |
download | gcc-8c97f7fd2382aa77f36567207e949447db90a1fb.zip gcc-8c97f7fd2382aa77f36567207e949447db90a1fb.tar.gz gcc-8c97f7fd2382aa77f36567207e949447db90a1fb.tar.bz2 |
Fortran: check for non-optional spaces between adjacent keywords
In free format, spaces between adjacent keywords are not optional except
when a combination is explicitly listed (e.g. F2018: table 6.2). The
following combinations thus require separating blanks: CHANGE TEAM,
ERROR STOP, EVENT POST, EVENT WAIT, FAIL IMAGE, FORM TEAM, SELECT RANK,
SYNC ALL, SYNC IMAGES, SYNC MEMORY, SYNC TEAM, TYPE IS.
gcc/fortran/ChangeLog:
PR fortran/105501
* match.cc (gfc_match_if): Adjust patterns used for matching.
(gfc_match_select_rank): Likewise.
* parse.cc (decode_statement): Likewise.
gcc/testsuite/ChangeLog:
PR fortran/105501
* gfortran.dg/pr105501.f90: New test.
Diffstat (limited to 'gcc/cp/optimize.cc')
0 files changed, 0 insertions, 0 deletions