Parse the locator list in OmpDependClause as an OmpObjectList (instead of a list of Designators). When a common block appears in the locator list, show an informative message. Implement resolving symbols in DependSinkVec in a dedicated visitor instead of having a visitor for OmpDependClause. Resolve unresolved names common blocks in OmpObjectList. Minor changes to the code organization: - rename OmpDependenceType to OmpTaskDependenceType (to follow 5.2 terminology), - rename Depend::WithLocators to Depend::DepType, - add comments with more detailed spec references to parse-tree.h. --------- Co-authored-by: Kiran Chandramohan <kiran.chandramohan@arm.com>
11 lines
246 B
Fortran
11 lines
246 B
Fortran
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=50
|
|
|
|
subroutine f00
|
|
integer :: x
|
|
common /cc/ x
|
|
!ERROR: Common block name ('cc') cannot appear in a DEPEND clause
|
|
!$omp task depend(in: /cc/)
|
|
x = 0
|
|
!$omp end task
|
|
end
|