aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/match.c
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2021-08-30 23:07:56 +0200
committerHarald Anlauf <anlauf@gmx.de>2021-08-30 23:10:01 +0200
commita7083b83e45852540a4a09ee11b74dc28d777399 (patch)
tree1d75258c04fc52c30101399ca1c4bf9e10ebc2b3 /gcc/fortran/match.c
parent79a017c412b412f26ec39e0ada75e247fcff5611 (diff)
downloadgcc-a7083b83e45852540a4a09ee11b74dc28d777399.zip
gcc-a7083b83e45852540a4a09ee11b74dc28d777399.tar.gz
gcc-a7083b83e45852540a4a09ee11b74dc28d777399.tar.bz2
Fortran - fix whitespace issue during parsing of assigned goto
gcc/fortran/ChangeLog: PR fortran/102113 * match.c (gfc_match_goto): Allow for whitespace in parsing list of labels. gcc/testsuite/ChangeLog: PR fortran/102113 * gfortran.dg/goto_9.f90: New test.
Diffstat (limited to 'gcc/fortran/match.c')
-rw-r--r--gcc/fortran/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index 16502da..53a575e 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -4079,7 +4079,7 @@ gfc_match_goto (void)
}
while (gfc_match_char (',') == MATCH_YES);
- if (gfc_match (")%t") != MATCH_YES)
+ if (gfc_match (" )%t") != MATCH_YES)
goto syntax;
if (head == NULL)