16 lines · plain
1! RUN: %python %S/../test_errors.py %s %flang -fopenmp2 3! 2.4 An array section designates a subset of the elements in an array. Although4! Substring shares similar syntax but cannot be treated as valid array section.5 6 character*8 c, b7 character a8 9 b = "HIFROMPGI"10 c = b(2:7)11 !ERROR: Substrings are not allowed on OpenMP directives or clauses12 !$omp parallel private(c(1:3))13 a = c(1:1)14 !$omp end parallel15end16