[flang-commits] [flang] [Flang][OpenMP] Fix compilation error when a line with Fixed Source Form Conditional Compilation Sentinels is a continuation line (PR #70309)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Fri Oct 27 07:05:11 PDT 2023


================
@@ -0,0 +1,16 @@
+! RUN: %flang_fc1 -fopenmp -fopenacc -E %s 2>&1 | FileCheck %s
+      program main
+! CHECK: k01=1+1
+      k01=1+
+!$   &  1
+
+! CHECK: !$omp parallel
----------------
luporl wrote:

Although I couldn't find anything in OpenMP spec that disallows or explicitly allows breaking a directive name in 2 lines, I'm a bit uncomfortable with testing it. Maybe this could be changed to something like this:
```suggestion
! CHECK: !$omp parallel private(k01)
!$omp parallel
!$omp+ private(k01)
```

https://github.com/llvm/llvm-project/pull/70309


More information about the flang-commits mailing list