-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang][openacc] Fix name resolution for fct name in acc routine
Name resolution was failing when the routine name is a function/subroutine in the parent scope. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D154002
- Loading branch information
1 parent
6bf66d8
commit 45c97af
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
! RUN: %python %S/../test_errors.py %s %flang -fopenacc | ||
|
||
subroutine sub1(a) | ||
real, dimension(10) :: a | ||
end subroutine | ||
|
||
subroutine sub2(a) | ||
!$acc routine(sub1) gang(dim:1) | ||
real, dimension(10) :: a | ||
call sub1(a) | ||
end subroutine |