summaryrefslogtreecommitdiff
path: root/gcc/fortran/scanner.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-13 19:42:55 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-13 19:42:55 +0000
commit1b9c6509c787cd171640953ba7c217c57e5753e1 (patch)
tree15823ef68e65e72d14a857c6f5534ffbffda0e7f /gcc/fortran/scanner.c
parent7db1c85842c927bf03fa9aece7d21eaae055e5b1 (diff)
downloadgcc-1b9c6509c787cd171640953ba7c217c57e5753e1.tar.gz
PR fortran/29759
* fortran/scanner.c (skip_free_comments): Clear openmp_flag before returning true. * gfortran.dg/gomp/pr29759.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r--gcc/fortran/scanner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 9d0ba2a492b..b05490409b1 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -392,6 +392,7 @@ skip_free_comments (void)
{
gfc_current_locus = old_loc;
next_char ();
+ openmp_flag = 0;
return true;
}
}