[flang][openacc] Fix name resolution for fct name in acc routine
authorValentin Clement <clementval@gmail.com>
Thu, 29 Jun 2023 16:05:21 +0000 (09:05 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 29 Jun 2023 16:05:50 +0000 (09:05 -0700)
commit45c97af55ed62189a43508abf86137eb64b302d3
treec78185d87c07849fd58fce897f0c3d9de32be657
parent6bf66d839f1386c06e19a3621c02c8fc6a14f94f
[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
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/OpenACC/acc-routine.f90 [new file with mode: 0644]